pub struct Indented<'i, T: Display> {
    pub item: T,
    pub indent: &'i str,
}Expand description
Fields§
§item: TThe item to indent.
indent: &'i strThe indentation to insert before each non-empty line.
Trait Implementations§
impl<'i, T: Copy + Display> Copy for Indented<'i, T>
Auto Trait Implementations§
impl<'i, T> Freeze for Indented<'i, T>where
    T: Freeze,
impl<'i, T> RefUnwindSafe for Indented<'i, T>where
    T: RefUnwindSafe,
impl<'i, T> Send for Indented<'i, T>where
    T: Send,
impl<'i, T> Sync for Indented<'i, T>where
    T: Sync,
impl<'i, T> Unpin for Indented<'i, T>where
    T: Unpin,
impl<'i, T> UnwindSafe for Indented<'i, T>where
    T: UnwindSafe,
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