pub enum ParagraphAlign {
Natural,
Center,
Trailing,
Justified,
}Expand description
How a paragraph’s lines sit in the width they are given.
Variants§
Natural
The reading direction’s start edge: left under LTR, right under RTL.
Center
Trailing
The reading direction’s end edge.
Justified
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
impl Eq for ParagraphAlign
Source§impl Hash for ParagraphAlign
impl Hash for ParagraphAlign
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§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more