pub enum TextAlign {
Left,
Center,
Right,
Justify,
}Expand description
TextAlign controls horizontal line placement within the layout width.
Variants§
Left
Left aligns lines with the left edge.
Center
Center centers each line.
Right
Right aligns lines with the right edge.
Justify
Justify expands word spacing to fill eligible lines.
Final lines and lines ending in a hard break remain unexpanded.
Trait Implementations§
impl Copy for TextAlign
impl Eq for TextAlign
Source§impl From<TextAlign> for ParagraphStyle
impl From<TextAlign> for ParagraphStyle
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