pub struct Environment { /* private fields */ }
Expand description
A main environment instance.
Implementations§
Source§impl Environment
impl Environment
pub fn resolve<N: AsRef<str>>(&self, name: N) -> Option<&EnvironmentDefs>
pub fn declare_procedure( &mut self, name: EnvProcs, nodes_cmp: NodesReaderEq, hint: &'static str, env_bind: EnvironmentDefs, allowed_procs: Vec<EnvProcs>, )
pub fn declare_procedure_int( &mut self, name: EnvProcs, nodes_cmp: NodesReaderEq, hint: &'static str, env_bind: EnvironmentDefs, int_bind: EnvironmentInts, allowed_procs: Vec<EnvProcs>, )
pub fn lookup<N: AsRef<str>>(&self, name: N) -> Option<&EnvironmentProc>
pub fn lookup_err<N: AsRef<str>>( &self, name: N, ) -> StaticSchemeRes<&EnvironmentProc>
Trait Implementations§
Source§impl Clone for Environment
impl Clone for Environment
Source§fn clone(&self) -> Environment
fn clone(&self) -> Environment
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Environment
impl Debug for Environment
Source§impl Default for Environment
impl Default for Environment
Source§fn default() -> Environment
fn default() -> Environment
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Environment
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> 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