#[non_exhaustive]pub enum Align {
Left,
Right,
Centre,
Spread,
}Expand description
What a row that is not full does with the space left over.
Align::Left on every row of every algorithm as measured. The rest of the
variants are what a host with a different panel width says instead, which is
what the field is for.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Left
Packed against the start of the row.
Right
Packed against the end of the row.
Centre
Packed together in the middle.
Spread
Spread across the whole row.
Trait Implementations§
impl Copy for Align
Source§impl<'de> Deserialize<'de> for Align
Available on crate feature serde only.
impl<'de> Deserialize<'de> for Align
Available on crate feature
serde only.Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Align
Source§impl Ord for Align
impl Ord for Align
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Align
impl PartialOrd for Align
impl StructuralPartialEq for Align
Auto Trait Implementations§
impl Forget for Align
impl Freeze for Align
impl Move for Align
impl RefUnwindSafe for Align
impl Send for Align
impl Sync for Align
impl Unpin for Align
impl UnsafeUnpin for Align
impl UnwindSafe for Align
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more