pub enum FunPtr<'a> {
Fun(&'a Function),
Native(&'a Native),
}Expand description
Reference to a function or a native object
Variants§
Implementations§
source§impl FunPtr<'_>
impl FunPtr<'_>
pub fn display_header_fmt<'a, Fmt: BytecodeFmt + 'a>( &'a self, bcfmt: Fmt, ctx: &'a Bytecode ) -> impl Display + 'a
pub fn display_header<'a, Fmt: BytecodeFmt + Default + 'a>( &'a self, ctx: &'a Bytecode ) -> impl Display + 'a
Trait Implementations§
impl<'a> Copy for FunPtr<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for FunPtr<'a>
impl<'a> Send for FunPtr<'a>
impl<'a> Sync for FunPtr<'a>
impl<'a> Unpin for FunPtr<'a>
impl<'a> UnwindSafe for FunPtr<'a>
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