pub enum TextJustify {
Left,
Center,
Right,
}Expand description
This enum is used by the TextWidget, which controls the justification of the text being
rendered within the bounds of the Widget.
Variants§
Left
Left-justified text.
Center
Center-justified text: (total width - text width) / 2
Right
Right-justified text: (total width - text width)
Auto Trait Implementations§
impl Freeze for TextJustify
impl RefUnwindSafe for TextJustify
impl Send for TextJustify
impl Sync for TextJustify
impl Unpin for TextJustify
impl UnsafeUnpin for TextJustify
impl UnwindSafe for TextJustify
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