pub struct Environment { /* private fields */ }
Implementations§
Source§impl Environment
impl Environment
pub fn new() -> Environment
pub fn new_with_parent(parent: Rc<RefCell<Environment>>) -> Environment
pub fn from_value( value: &SerdeValue, parent: Option<Rc<RefCell<Environment>>>, ) -> Result<Environment, EnvironmentError>
pub fn from_object( object: &SerdeValueObject, parent: Option<Rc<RefCell<Environment>>>, ) -> Result<Environment, EnvironmentError>
pub fn insert<K, V>(&mut self, k: K, v: V)
pub fn get(&self, key: &str) -> Option<SerdeValue>
pub fn get_in(&self, keys: Vec<&str>) -> Option<SerdeValue>
pub fn iter(&self) -> Box<dyn Iterator<Item = (String, SerdeValue)>>
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
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