[][src]Struct pad_adapter::PadAdapter

pub struct PadAdapter<'a, 'b: 'a, 'c> { /* fields omitted */ }

Pad adapter inserts the padding after each newline except the last.

The default padding is .

Implementations

impl<'a, 'b: 'a, 'c> PadAdapter<'a, 'b, 'c>[src]

pub fn new(fmt: &'a mut Formatter<'b>) -> Self[src]

Creates a new pad adapter with default padding.

pub fn with_padding(fmt: &'a mut Formatter<'b>, padding: &'c str) -> Self[src]

Creates a new pad adapter with the padding.

Trait Implementations

impl<'_, '_, '_> Write for PadAdapter<'_, '_, '_>[src]

Auto Trait Implementations

impl<'a, 'b, 'c> !Send for PadAdapter<'a, 'b, 'c>

impl<'a, 'b, 'c> !Sync for PadAdapter<'a, 'b, 'c>

impl<'a, 'b, 'c> Unpin for PadAdapter<'a, 'b, 'c> where
    'b: 'a, 

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, U> Into<U> for T where
    U: From<T>, 
[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.