pub enum TextAlign {
Left,
Right,
Justify,
Center,
}Expand description
Text alignment options
Defines the available text alignment modes for content in the document.
Variants§
Left
Left-aligned text
Text is aligned to the left margin, with the right edge ragged.
Right
Right-aligned text
Text is aligned to the right margin, with the left edge ragged.
Justify
Justified text
Text is aligned to both margins by adjusting the spacing between words. The left and right edges are both straight.
Center
Centered text
Text is centered within the content area, with both edges ragged.
Trait Implementations§
impl Copy 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