pub enum PdfParagraphFragment<'a> {
StyledString(PdfStyledString<'a>),
LineBreak {
alignment: PdfLineAlignment,
bottom: PdfPoints,
left: PdfPoints,
},
NonTextObject(FPDF_PAGEOBJECT),
}Expand description
A single fragment in a PdfParagraph. The fragment may later be split into sub-fragments when assembling the PdfParagraph into lines.
Variants§
StyledString(PdfStyledString<'a>)
A run of styled text.
LineBreak
A line break with alignment and position information from the preceding line.
NonTextObject(FPDF_PAGEOBJECT)
A non-text page object (image, path, shading, etc.).
Auto Trait Implementations§
impl<'a> !Freeze for PdfParagraphFragment<'a>
impl<'a> !RefUnwindSafe for PdfParagraphFragment<'a>
impl<'a> !Send for PdfParagraphFragment<'a>
impl<'a> !Sync for PdfParagraphFragment<'a>
impl<'a> !UnwindSafe for PdfParagraphFragment<'a>
impl<'a> Unpin for PdfParagraphFragment<'a>
impl<'a> UnsafeUnpin for PdfParagraphFragment<'a>
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