Struct zero_copy_pads::AlignLeft[][src]

pub struct AlignLeft;

Pad to the right, content to the left.

Example:

use zero_copy_pads::{AlignLeft, PaddedValue, PanicOnExcess};
let padded_value = PaddedValue {
    pad: AlignLeft,
    value: "abcdef",
    pad_block: '-',
    total_width: 9,
    handle_excess: PanicOnExcess,
};
assert_eq!(padded_value.to_string(), "abcdef---");

Trait Implementations

impl Clone for AlignLeft[src]

impl Copy for AlignLeft[src]

impl Debug for AlignLeft[src]

impl Default for AlignLeft[src]

impl Eq for AlignLeft[src]

impl<Value: Width, PadBlock: Display> Pad<Value, PadBlock> for AlignLeft[src]

impl PartialEq<AlignLeft> for AlignLeft[src]

impl StructuralEq for AlignLeft[src]

impl StructuralPartialEq for AlignLeft[src]

impl Unit for AlignLeft[src]

impl<Value: Width, PadBlock: Display> UnitPad<Value, PadBlock> for AlignLeft[src]

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.