pub struct ScopeMark { /* private fields */ }Expand description
Where a scope stood, so a scoped Open … in … (or a declaration’s own implicit namespace) can be
wound back EXACTLY, without knowing what it pushed.
It saves the scope rather than an index into it because _root_.baz elaborates at the root: a
bracketed change may REMOVE frames as well as add them, and a high-water mark cannot restore
what was cleared. Two short Vec clones per command, against a whole elaboration.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ScopeMark
impl RefUnwindSafe for ScopeMark
impl Send for ScopeMark
impl Sync for ScopeMark
impl Unpin for ScopeMark
impl UnsafeUnpin for ScopeMark
impl UnwindSafe for ScopeMark
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