Enum pad::Alignment [] [src]

pub enum Alignment {
    Left,
    Right,
    Middle,
    MiddleRight,
}

An alignment tells the padder where to put the spaces.

Variants

Text on the left, spaces on the right.

Text on the right, spaces on the left.

Text in the middle, spaces around it, but shifted to the left if it can't be exactly central.

Text in the middle, spaces around it, but shifted to the right if it can't be exactly central.

Trait Implementations

impl PartialEq for Alignment
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Alignment
[src]

impl Debug for Alignment
[src]

Formats the value using the given formatter.

impl Clone for Alignment
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a> Copy for Alignment
[src]