Struct ergotree_interpreter::eval::env::Env[][src]

pub struct Env { /* fields omitted */ }

Environment for the interpreter

Implementations

impl Env[src]

pub fn empty() -> Env[src]

Empty environment

pub fn extend(&self, idx: ValId, v: Value) -> Env[src]

Extend this environment (create new) with added element

pub fn insert(&mut self, idx: ValId, v: Value)[src]

Insert a Value for the given ValId

pub fn get(&self, idx: ValId) -> Option<&Value>[src]

Get an element

Trait Implementations

impl Clone for Env[src]

impl Debug for Env[src]

impl Eq for Env[src]

impl PartialEq<Env> for Env[src]

impl StructuralEq for Env[src]

impl StructuralPartialEq for Env[src]

Auto Trait Implementations

impl RefUnwindSafe for Env

impl Send for Env

impl Sync for Env

impl Unpin for Env

impl UnwindSafe for Env

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<F> TryExtractInto<F> for F[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,