pub struct IndentGuard { /* private fields */ }Expand description
RAII guard that maintains indentation level
Uses Rc<Cell<usize>> to independently manage indent level without any borrows.
Trait Implementations§
Source§impl Drop for IndentGuard
impl Drop for IndentGuard
Auto Trait Implementations§
impl !RefUnwindSafe for IndentGuard
impl !Send for IndentGuard
impl !Sync for IndentGuard
impl !UnwindSafe for IndentGuard
impl Freeze for IndentGuard
impl Unpin for IndentGuard
impl UnsafeUnpin for IndentGuard
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