pub struct ShowBuffer { /* private fields */ }Expand description
A string buffer with indentation support.
Implementations§
Source§impl ShowBuffer
impl ShowBuffer
Sourcepub fn with_indent<F: FnOnce(&mut ShowBuffer)>(&mut self, f: F)
pub fn with_indent<F: FnOnce(&mut ShowBuffer)>(&mut self, f: F)
Push an indented block: indent, run f, dedent.
Trait Implementations§
Source§impl Clone for ShowBuffer
impl Clone for ShowBuffer
Source§fn clone(&self) -> ShowBuffer
fn clone(&self) -> ShowBuffer
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ShowBuffer
impl Debug for ShowBuffer
Source§impl Default for ShowBuffer
impl Default for ShowBuffer
Source§fn default() -> ShowBuffer
fn default() -> ShowBuffer
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ShowBuffer
impl RefUnwindSafe for ShowBuffer
impl Send for ShowBuffer
impl Sync for ShowBuffer
impl Unpin for ShowBuffer
impl UnsafeUnpin for ShowBuffer
impl UnwindSafe for ShowBuffer
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