pub struct Context;
Expand description
The Context
provided by this crate.
Implementations§
Trait Implementations§
Source§impl CompilerContext for Context
impl CompilerContext for Context
Source§type CompileError = CompileError
type CompileError = CompileError
An error encountered during compilation.
Source§impl Context for Context
impl Context for Context
Source§type BuiltinFunction = fn(Vec<Gc<Value<Context>>>) -> Result<Gc<Value<Context>>, RuntimeError>
type BuiltinFunction = fn(Vec<Gc<Value<Context>>>) -> Result<Gc<Value<Context>>, RuntimeError>
The type of a function implemented by the runtime.
Source§type UserFunction = (Gc<Expr>, GcLinkedList<(Symbol, Gc<Value<Context>>)>)
type UserFunction = (Gc<Expr>, GcLinkedList<(Symbol, Gc<Value<Context>>)>)
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>)>
).Source§impl InterpreterContext for Context
impl InterpreterContext for Context
Source§type RuntimeError = RuntimeError
type RuntimeError = RuntimeError
An error encountered at runtime.
Auto Trait Implementations§
impl Freeze for Context
impl RefUnwindSafe for Context
impl Send 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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