pub struct MethodRef {
pub offset: usize,
pub name: String,
}Expand description
Reference to a (possibly inferred) method within a script.
When a manifest is present, name typically matches the ABI method name.
For internal helper routines without ABI metadata, name will be a
synthetic sub_0x.... label.
Fields§
§offset: usizeMethod entry offset in bytecode.
name: StringHuman-readable method name.
Trait Implementations§
impl Eq for MethodRef
impl StructuralPartialEq for MethodRef
Auto Trait Implementations§
impl Freeze for MethodRef
impl RefUnwindSafe for MethodRef
impl Send for MethodRef
impl Sync for MethodRef
impl Unpin for MethodRef
impl UnwindSafe for MethodRef
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.