pub struct MethodMetadata {
pub module_path: String,
pub self_name: String,
pub name: String,
pub is_async: bool,
pub inputs: Vec<FnParamMetadata>,
pub return_type: Option<Type>,
pub throws: Option<Type>,
pub takes_self_by_arc: bool,
pub checksum: Option<u16>,
}
Fields§
§module_path: String
§self_name: String
§name: String
§is_async: bool
§inputs: Vec<FnParamMetadata>
§return_type: Option<Type>
§throws: Option<Type>
§takes_self_by_arc: bool
§checksum: Option<u16>
Implementations§
Source§impl MethodMetadata
impl MethodMetadata
pub fn ffi_symbol_name(&self) -> String
pub fn checksum_symbol_name(&self) -> String
Trait Implementations§
Source§impl Clone for MethodMetadata
impl Clone for MethodMetadata
Source§fn clone(&self) -> MethodMetadata
fn clone(&self) -> MethodMetadata
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MethodMetadata
impl Debug for MethodMetadata
Source§impl From<MethodMetadata> for Metadata
impl From<MethodMetadata> for Metadata
Source§fn from(m: MethodMetadata) -> Self
fn from(m: MethodMetadata) -> Self
Converts to this type from the input type.
Source§impl Ord for MethodMetadata
impl Ord for MethodMetadata
Source§fn cmp(&self, other: &MethodMetadata) -> Ordering
fn cmp(&self, other: &MethodMetadata) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MethodMetadata
impl PartialEq for MethodMetadata
Source§impl PartialOrd for MethodMetadata
impl PartialOrd for MethodMetadata
impl Eq for MethodMetadata
impl StructuralPartialEq for MethodMetadata
Auto Trait Implementations§
impl Freeze for MethodMetadata
impl RefUnwindSafe for MethodMetadata
impl Send for MethodMetadata
impl Sync for MethodMetadata
impl Unpin for MethodMetadata
impl UnwindSafe for MethodMetadata
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more