pub enum Context {
External(*mut Ctx),
ExternalWithEnv(*mut Ctx, Option<NonNull<FuncEnv>>),
Internal,
}
Expand description
A kind of Context.
Variants§
External(*mut Ctx)
External context include a mutable pointer to Ctx
.
ExternalWithEnv(*mut Ctx, Option<NonNull<FuncEnv>>)
External context with an environment include a mutable pointer
to Ctx
and an optional non-null pointer to FuncEnv
.
Internal
Internal context.
Trait Implementations§
impl Copy for Context
impl Send for Context
Auto Trait Implementations§
impl Freeze for Context
impl !RefUnwindSafe for Context
impl !Sync for Context
impl Unpin for Context
impl !UnwindSafe for Context
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