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
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
This method tests for !=
.
impl Eq for Alignment
[src]
impl Debug for Alignment
[src]
impl Clone for Alignment
[src]
fn clone(&self) -> Alignment
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more