pub struct Environment { /* private fields */ }Implementations§
source§impl Environment
impl Environment
pub fn new() -> Self
pub fn define(&mut self, identifier: &str, value: ValueResult, is_const: bool)
pub fn assign( &mut self, identifier: &str, value: ValueResult, span: &Span, ) -> Result<()>
pub fn get(&self, identifier: &str, span: &Span) -> Result<&ValueResult>
pub fn enter_scope(&mut self)
pub fn exit_scope(&mut self)
Trait Implementations§
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