pub struct MutableStackEnvironment<'a> {
pub backing: StackEnvironment<'a>,
pub updates: Vec<(&'a str, usize)>,
}Expand description
A mutable stack environment, backed by a static stack environment.
Fields§
§backing: StackEnvironment<'a>The backing stack environment that contains the original bindings.
updates: Vec<(&'a str, usize)>The updates made to the stack environment.
Implementations§
Source§impl<'a> MutableStackEnvironment<'a>
impl<'a> MutableStackEnvironment<'a>
Sourcepub fn new(bindings: StackEnvironment<'a>) -> Self
pub fn new(bindings: StackEnvironment<'a>) -> Self
Creates a new MutableStackEnvironment with the given backing bindings.
Trait Implementations§
Source§impl<'a> MutableStackMap<'a, usize> for MutableStackEnvironment<'a>
impl<'a> MutableStackMap<'a, usize> for MutableStackEnvironment<'a>
Source§impl<'a> StackMap<'a, usize> for MutableStackEnvironment<'a>
impl<'a> StackMap<'a, usize> for MutableStackEnvironment<'a>
Auto Trait Implementations§
impl<'a> Freeze for MutableStackEnvironment<'a>
impl<'a> RefUnwindSafe for MutableStackEnvironment<'a>
impl<'a> Send for MutableStackEnvironment<'a>
impl<'a> Sync for MutableStackEnvironment<'a>
impl<'a> Unpin for MutableStackEnvironment<'a>
impl<'a> UnsafeUnpin for MutableStackEnvironment<'a>
impl<'a> UnwindSafe for MutableStackEnvironment<'a>
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