#[non_exhaustive]pub enum TextAlign {
Start,
End,
Left,
Center,
Right,
Justify,
}Expand description
Horizontal alignment of each line within the paragraph’s width.
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.
Start
Left for left-to-right paragraphs, right for right-to-left ones.
End
Right for left-to-right paragraphs, left for right-to-left ones.
Left
Flush left.
Center
Centered.
Right
Flush right.
Justify
Stretched to the full width, except a paragraph’s last line.
Trait Implementations§
impl Copy for TextAlign
impl Eq for TextAlign
impl StructuralPartialEq for TextAlign
Auto Trait Implementations§
impl Freeze for TextAlign
impl RefUnwindSafe for TextAlign
impl Send for TextAlign
impl Sync for TextAlign
impl Unpin for TextAlign
impl UnsafeUnpin for TextAlign
impl UnwindSafe for TextAlign
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