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]

[src]

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

1.0.0
[src]

This method tests for !=.

impl Eq for Alignment
[src]

impl Debug for Alignment
[src]

[src]

Formats the value using the given formatter. Read more

impl Copy for Alignment
[src]

impl Clone for Alignment
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for Alignment

impl Sync for Alignment