pub struct PrettyIndent { /* private fields */ }
Expand description
Indentation state.
Implementations§
Source§impl PrettyIndent
impl PrettyIndent
Sourcepub fn new(prefix: &'static str) -> PrettyIndent
pub fn new(prefix: &'static str) -> PrettyIndent
Create an indentation state. The entire listing will be indented by the width
of prefix
, and prefix
will appear at the start of the first line.
Trait Implementations§
Source§impl Debug for PrettyIndent
impl Debug for PrettyIndent
Auto Trait Implementations§
impl Freeze for PrettyIndent
impl RefUnwindSafe for PrettyIndent
impl Send for PrettyIndent
impl Sync for PrettyIndent
impl Unpin for PrettyIndent
impl UnwindSafe for PrettyIndent
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more