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§
Auto Trait Implementations§
impl Freeze for IndentGuard
impl !RefUnwindSafe for IndentGuard
impl !Send for IndentGuard
impl !Sync for IndentGuard
impl Unpin for IndentGuard
impl UnsafeUnpin for IndentGuard
impl !UnwindSafe 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