pub enum TextAlignment {
Start,
End,
Center,
Justified,
}Expand description
Paragraph alignment, with start/end resolved by the paragraph direction.
Variants§
Start
Follow paragraph start.
End
Follow paragraph end.
Center
Center each line within the requested width.
Justified
Justify nonfinal lines.
Trait Implementations§
Source§impl Clone for TextAlignment
impl Clone for TextAlignment
impl Copy for TextAlignment
Source§impl Debug for TextAlignment
impl Debug for TextAlignment
Source§impl Default for TextAlignment
impl Default for TextAlignment
impl Eq for TextAlignment
Source§impl Hash for TextAlignment
impl Hash for TextAlignment
Source§impl Ord for TextAlignment
impl Ord for TextAlignment
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 PartialEq for TextAlignment
impl PartialEq for TextAlignment
Source§impl PartialOrd for TextAlignment
impl PartialOrd for TextAlignment
impl StructuralPartialEq for TextAlignment
Auto Trait Implementations§
impl Forget for TextAlignment
impl Freeze for TextAlignment
impl RefUnwindSafe for TextAlignment
impl Send for TextAlignment
impl Sync for TextAlignment
impl Unpin for TextAlignment
impl UnsafeUnpin for TextAlignment
impl UnwindSafe for TextAlignment
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