pub enum NullContext {}
Expand description
A Context
for plain data.
Trait Implementations§
Source§impl Context for NullContext
impl Context for NullContext
Source§type BuiltinFunction = GcVoid
type BuiltinFunction = GcVoid
The type of a function implemented by the runtime.
Source§type Expr = Expr<NullContext>
type Expr = Expr<NullContext>
The type of an expression in the AST.
Source§type ObjectVtable = GcVoid
type ObjectVtable = GcVoid
The type of the vtable of an object.
Source§type UserFunction = GcVoid
type UserFunction = GcVoid
The type of a user function. This probably should just be the
arguments (as an
Args<C>
), the body (as C::Expr
), and the variables
closed over and their values (as a GcLinkedList<(Symbol, Value<C>)>
).Auto Trait Implementations§
impl Freeze for NullContext
impl RefUnwindSafe for NullContext
impl Send for NullContext
impl Sync for NullContext
impl Unpin for NullContext
impl UnwindSafe for NullContext
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more