pub struct TraitMethodMetadata {
pub module_path: String,
pub trait_name: String,
pub index: u32,
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
§trait_name: String
§index: u32
§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 TraitMethodMetadata
impl TraitMethodMetadata
pub fn ffi_symbol_name(&self) -> String
pub fn checksum_symbol_name(&self) -> String
Trait Implementations§
Source§impl Clone for TraitMethodMetadata
impl Clone for TraitMethodMetadata
Source§fn clone(&self) -> TraitMethodMetadata
fn clone(&self) -> TraitMethodMetadata
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 TraitMethodMetadata
impl Debug for TraitMethodMetadata
Source§impl From<TraitMethodMetadata> for Metadata
impl From<TraitMethodMetadata> for Metadata
Source§fn from(v: TraitMethodMetadata) -> Self
fn from(v: TraitMethodMetadata) -> Self
Converts to this type from the input type.
Source§impl Ord for TraitMethodMetadata
impl Ord for TraitMethodMetadata
Source§fn cmp(&self, other: &TraitMethodMetadata) -> Ordering
fn cmp(&self, other: &TraitMethodMetadata) -> 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 TraitMethodMetadata
impl PartialEq for TraitMethodMetadata
Source§impl PartialOrd for TraitMethodMetadata
impl PartialOrd for TraitMethodMetadata
impl Eq for TraitMethodMetadata
impl StructuralPartialEq for TraitMethodMetadata
Auto Trait Implementations§
impl Freeze for TraitMethodMetadata
impl RefUnwindSafe for TraitMethodMetadata
impl Send for TraitMethodMetadata
impl Sync for TraitMethodMetadata
impl Unpin for TraitMethodMetadata
impl UnwindSafe for TraitMethodMetadata
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