Enum pad::Alignment
[−]
[src]
pub enum Alignment { Left, Right, Middle, MiddleRight, }
An alignment tells the padder where to put the spaces.
Variants
Left
Text on the left, spaces on the right.
Right
Text on the right, spaces on the left.
Middle
Text in the middle, spaces around it, but shifted to the left if it can't be exactly central.
MiddleRight
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]
fn eq(&self, __arg_0: &Alignment) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Eq for Alignment
[src]
impl Debug for Alignment
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more