pub enum JustifyMode {
None,
InterWord {
extra_px_total: i32,
},
AlignRight {
offset_px: i32,
},
AlignCenter {
offset_px: i32,
},
}Expand description
Justification mode determined during layout.
Variants§
None
Left/no justification.
InterWord
Inter-word with total extra px to distribute.
AlignRight
Right alignment with horizontal offset.
AlignCenter
Center alignment with horizontal offset.
Trait Implementations§
Source§impl Clone for JustifyMode
impl Clone for JustifyMode
Source§fn clone(&self) -> JustifyMode
fn clone(&self) -> JustifyMode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for JustifyMode
impl Debug for JustifyMode
Source§impl PartialEq for JustifyMode
impl PartialEq for JustifyMode
impl Copy for JustifyMode
impl Eq for JustifyMode
impl StructuralPartialEq for JustifyMode
Auto Trait Implementations§
impl Freeze for JustifyMode
impl RefUnwindSafe for JustifyMode
impl Send for JustifyMode
impl Sync for JustifyMode
impl Unpin for JustifyMode
impl UnsafeUnpin for JustifyMode
impl UnwindSafe for JustifyMode
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