Struct indent_write::indentable::IndentedSkipIntial[][src]

pub struct IndentedSkipIntial<'i, T: Display> {
    pub item: T,
    pub indent: &'i str,
}

Wrapper struct that indents the Display representation of an item. When printed with Display, it will insert indent before each non-empty line after the first of the underlying item’s Display output.

Created with Indentable::indented; see its documentation for an example.

Fields

item: T

The item to indent.

indent: &'i str

The indentation to insert before each non-empty line.

Trait Implementations

impl<'i, T: Clone + Display> Clone for IndentedSkipIntial<'i, T>[src]

impl<'i, T: Copy + Display> Copy for IndentedSkipIntial<'i, T>[src]

impl<'i, T: Debug + Display> Debug for IndentedSkipIntial<'i, T>[src]

impl<T: Display> Display for IndentedSkipIntial<'_, T>[src]

Auto Trait Implementations

impl<'i, T> RefUnwindSafe for IndentedSkipIntial<'i, T> where
    T: RefUnwindSafe

impl<'i, T> Send for IndentedSkipIntial<'i, T> where
    T: Send

impl<'i, T> Sync for IndentedSkipIntial<'i, T> where
    T: Sync

impl<'i, T> Unpin for IndentedSkipIntial<'i, T> where
    T: Unpin

impl<'i, T> UnwindSafe for IndentedSkipIntial<'i, T> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Indentable for T where
    T: Display
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.