pub enum PdfParagraphAlignment {
LeftAlign,
RightAlign,
Center,
Justify,
ForceJustify,
}Expand description
Controls the line alignment behaviour of a [PdfParagraph].
Variants§
LeftAlign
All lines will be non-justified, aligned to the left.
RightAlign
All lines will be non-justified, aligned to the right.
Center
All lines will be non-justified and centered.
Justify
All lines except the last will be justified.
ForceJustify
All lines, including the last, will be justified.
Trait Implementations§
source§impl Clone for PdfParagraphAlignment
impl Clone for PdfParagraphAlignment
source§fn clone(&self) -> PdfParagraphAlignment
fn clone(&self) -> PdfParagraphAlignment
Returns a copy 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 PdfParagraphAlignment
impl Debug for PdfParagraphAlignment
source§impl PartialEq for PdfParagraphAlignment
impl PartialEq for PdfParagraphAlignment
source§fn eq(&self, other: &PdfParagraphAlignment) -> bool
fn eq(&self, other: &PdfParagraphAlignment) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for PdfParagraphAlignment
impl StructuralPartialEq for PdfParagraphAlignment
Auto Trait Implementations§
impl Freeze for PdfParagraphAlignment
impl RefUnwindSafe for PdfParagraphAlignment
impl Send for PdfParagraphAlignment
impl Sync for PdfParagraphAlignment
impl Unpin for PdfParagraphAlignment
impl UnwindSafe for PdfParagraphAlignment
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
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