pub enum Alignment {
Default,
Left,
Center,
Right,
Justified,
}
Expand description
The alignment of some text.
Variants§
Default
No specific alignment.
Left-to-right text will be aligned to the left, while right-to-left text will be aligned to the right.
Left
Align text to the left.
Center
Center text.
Right
Align text to the right.
Justified
Justify text.
Trait Implementations§
Source§impl From<Alignment> for Horizontal
impl From<Alignment> for Horizontal
Source§impl From<Horizontal> for Alignment
impl From<Horizontal> for Alignment
Source§fn from(alignment: Horizontal) -> Self
fn from(alignment: Horizontal) -> Self
Converts to this type from the input type.
impl Copy for Alignment
impl Eq for Alignment
impl StructuralPartialEq for Alignment
Auto Trait Implementations§
impl Freeze for Alignment
impl RefUnwindSafe for Alignment
impl Send for Alignment
impl Sync for Alignment
impl Unpin for Alignment
impl UnwindSafe for Alignment
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.