pub struct Env { /* private fields */ }Implementations§
Source§impl Env
impl Env
pub fn new() -> Self
pub fn lookup(&self, name: &str) -> Option<Value>
Sourcepub fn extend(&self, name: impl Into<String>, value: Value) -> Self
pub fn extend(&self, name: impl Into<String>, value: Value) -> Self
Add one binding on top. Returns a new Env (immutable API).
Sourcepub fn extend_many<I, K, V>(&self, it: I) -> Self
pub fn extend_many<I, K, V>(&self, it: I) -> Self
Add many bindings on top in one frame.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Env
impl !UnwindSafe for Env
impl Freeze for Env
impl Send for Env
impl Sync for Env
impl Unpin for Env
impl UnsafeUnpin for Env
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