pub enum ParagraphAlign {
Left,
Center,
Right,
Justify,
}Expand description
Horizontal alignment for a Paragraph.
Variants§
Left
Flush to the rect’s left edge.
Center
Centered within the rect width.
Right
Flush to the rect’s right edge.
Justify
Flush to both edges: word spacing stretches every line but the last.
Trait Implementations§
Source§impl Clone for ParagraphAlign
impl Clone for ParagraphAlign
Source§fn clone(&self) -> ParagraphAlign
fn clone(&self) -> ParagraphAlign
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ParagraphAlign
Source§impl Debug for ParagraphAlign
impl Debug for ParagraphAlign
Source§impl Default for ParagraphAlign
impl Default for ParagraphAlign
Source§fn default() -> ParagraphAlign
fn default() -> ParagraphAlign
Returns the “default value” for a type. Read more
Source§impl PartialEq for ParagraphAlign
impl PartialEq for ParagraphAlign
impl StructuralPartialEq for ParagraphAlign
Auto Trait Implementations§
impl Freeze for ParagraphAlign
impl RefUnwindSafe for ParagraphAlign
impl Send for ParagraphAlign
impl Sync for ParagraphAlign
impl Unpin for ParagraphAlign
impl UnsafeUnpin for ParagraphAlign
impl UnwindSafe for ParagraphAlign
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