Struct callisp::env::Environment
source · pub struct Environment { /* private fields */ }
Expand description
The environment that expressions are evaluated in.
Implementations§
source§impl Environment
impl Environment
sourcepub fn with_binds(bindings: HashMap<String, Ast>) -> Self
pub fn with_binds(bindings: HashMap<String, Ast>) -> Self
Create an environment with the specified bindings at the outermost scope.
sourcepub fn new_scope(&mut self, bindings: HashMap<String, Ast>)
pub fn new_scope(&mut self, bindings: HashMap<String, Ast>)
Add an empty scope to the environment.
Trait Implementations§
source§impl From<Environment> for JsValue
impl From<Environment> for JsValue
source§fn from(value: Environment) -> Self
fn from(value: Environment) -> Self
Converts to this type from the input type.
source§impl FromWasmAbi for Environment
impl FromWasmAbi for Environment
source§impl IntoWasmAbi for Environment
impl IntoWasmAbi for Environment
source§impl OptionFromWasmAbi for Environment
impl OptionFromWasmAbi for Environment
source§impl OptionIntoWasmAbi for Environment
impl OptionIntoWasmAbi for Environment
source§impl RefFromWasmAbi for Environment
impl RefFromWasmAbi for Environment
§type Anchor = Ref<'static, Environment>
type Anchor = Ref<'static, Environment>
The type that holds the reference to
Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.source§impl RefMutFromWasmAbi for Environment
impl RefMutFromWasmAbi for Environment
Auto Trait Implementations§
impl !RefUnwindSafe for Environment
impl !Send for Environment
impl !Sync for Environment
impl Unpin for Environment
impl !UnwindSafe for Environment
Blanket Implementations§
source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.