pub struct FnMetadata {
pub module_path: String,
pub name: String,
pub is_async: bool,
pub inputs: Vec<FnParamMetadata>,
pub return_type: Option<Type>,
pub throws: Option<Type>,
pub checksum: Option<u16>,
}
Fields§
§module_path: String
§name: String
§is_async: bool
§inputs: Vec<FnParamMetadata>
§return_type: Option<Type>
§throws: Option<Type>
§checksum: Option<u16>
Implementations§
Source§impl FnMetadata
impl FnMetadata
pub fn ffi_symbol_name(&self) -> String
pub fn checksum_symbol_name(&self) -> String
Trait Implementations§
Source§impl Clone for FnMetadata
impl Clone for FnMetadata
Source§fn clone(&self) -> FnMetadata
fn clone(&self) -> FnMetadata
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 FnMetadata
impl Debug for FnMetadata
Source§impl From<FnMetadata> for Metadata
impl From<FnMetadata> for Metadata
Source§fn from(value: FnMetadata) -> Metadata
fn from(value: FnMetadata) -> Metadata
Converts to this type from the input type.
Source§impl Ord for FnMetadata
impl Ord for FnMetadata
Source§fn cmp(&self, other: &FnMetadata) -> Ordering
fn cmp(&self, other: &FnMetadata) -> 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 FnMetadata
impl PartialEq for FnMetadata
Source§impl PartialOrd for FnMetadata
impl PartialOrd for FnMetadata
impl Eq for FnMetadata
impl StructuralPartialEq for FnMetadata
Auto Trait Implementations§
impl Freeze for FnMetadata
impl RefUnwindSafe for FnMetadata
impl Send for FnMetadata
impl Sync for FnMetadata
impl Unpin for FnMetadata
impl UnwindSafe for FnMetadata
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