pub struct Frame { /* private fields */ }
Expand description
A variable scope.
Implementations§
Source§impl Frame
impl Frame
pub fn new() -> Frame
pub fn define(&mut self, key: &str)
pub fn set(&mut self, key: &str, value: Value)
pub fn remove(&mut self, key: &str) -> Option<Arc<Variable>>
pub fn get(&self, key: &str) -> Option<Arc<Variable>>
Sourcepub fn get_string_args(&self) -> Vec<String>
pub fn get_string_args(&self) -> Vec<String>
Returns $1
, $2
, …
Sourcepub fn set_nth_arg(&mut self, index: usize, value: Value)
pub fn set_nth_arg(&mut self, index: usize, value: Value)
Sets $<index>
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Frame
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnwindSafe for Frame
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