pub struct GenericHookMeta {
pub params: Vec<GenericParam>,
pub return_type: TypeInfo,
pub is_instance: bool,
pub signature: String,
}Available on x86-64 only.
Expand description
Metadata about a generically-hooked method, built once at install time.
The params list includes the instance pointer (if any) as the first
entry, followed by the declared parameters. Each is mapped to its ABI
register slot.
Fields§
§params: Vec<GenericParam>The register-passed parameters, this first for instance methods.
Parameters past the last free register are left out.
return_type: TypeInfoThe method’s managed return type.
is_instance: boolWhether the first entry of GenericHookMeta::params is this.
signature: StringThe managed signature, as Method::signature gives it.
Trait Implementations§
Source§impl Clone for GenericHookMeta
impl Clone for GenericHookMeta
Auto Trait Implementations§
impl Forget for GenericHookMeta
impl Freeze for GenericHookMetawhere
*const u8 is !null: Freeze,
PhantomData<GenericParam>: Freeze,
&'static str: Freeze,
PhantomData<u8>: Freeze,
impl Move for GenericHookMeta
impl RefUnwindSafe for GenericHookMeta
impl Send for GenericHookMeta
impl Sync for GenericHookMetawhere
RawVecInner: Sync,
impl Unpin for GenericHookMeta
impl UnsafeUnpin for GenericHookMetawhere
*const u8 is !null: UnsafeUnpin,
PhantomData<GenericParam>: UnsafeUnpin,
&'static str: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for GenericHookMeta
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