Struct ruschm::environment::LexicalScope[][src]

pub struct LexicalScope<V> { /* fields omitted */ }

Implementations

impl<V> LexicalScope<V>[src]

pub fn new() -> Self[src]

pub fn new_child(parent: Rc<LexicalScope<V>>) -> Self[src]

pub fn define(&self, name: String, value: V)[src]

pub fn get(&self, name: &str) -> Option<Ref<'_, V>>[src]

pub fn get_mut(&self, name: &str) -> Option<RefMut<'_, V>>[src]

pub fn set(&self, name: &str, value: V) -> Result<(), SchemeError>[src]

pub fn iter_local_definitions<'a, 'b: 'a>(
    &'b self
) -> RefVal<'a, DefinitionIter<'b, V>>
[src]

Trait Implementations

impl<V: Clone> Clone for LexicalScope<V>[src]

impl<V: Debug> Debug for LexicalScope<V>[src]

impl<V: PartialEq> PartialEq<LexicalScope<V>> for LexicalScope<V>[src]

impl<V> StructuralPartialEq for LexicalScope<V>[src]

Auto Trait Implementations

impl<V> !RefUnwindSafe for LexicalScope<V>

impl<V> !Send for LexicalScope<V>

impl<V> !Sync for LexicalScope<V>

impl<V> Unpin for LexicalScope<V> where
    V: Unpin

impl<V> !UnwindSafe for LexicalScope<V>

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<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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.