Struct rem_utils::labelling::ScopedContext
source · pub struct ScopedContext<K: Eq + Hash, L>(/* private fields */);Expand description
Generic Scoped Context, maps identifiers to labels
Implementations§
source§impl<K: Eq + Hash, L> ScopedContext<K, L>
impl<K: Eq + Hash, L> ScopedContext<K, L>
pub fn open_scope(&mut self)
pub fn close_scope(&mut self)
pub fn add_binding(&mut self, var: K, value: L)
Trait Implementations§
Auto Trait Implementations§
impl<K, L> Freeze for ScopedContext<K, L>
impl<K, L> RefUnwindSafe for ScopedContext<K, L>where
K: RefUnwindSafe,
L: RefUnwindSafe,
impl<K, L> Send for ScopedContext<K, L>
impl<K, L> Sync for ScopedContext<K, L>
impl<K, L> Unpin for ScopedContext<K, L>
impl<K, L> UnwindSafe for ScopedContext<K, L>where
K: UnwindSafe,
L: UnwindSafe,
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