pub struct TextSection<'f, 'p> { /* private fields */ }Expand description
A text section that is drawn on an area of a PDF layer.
Implementations§
Source§impl<'f, 'p> TextSection<'f, 'p>
impl<'f, 'p> TextSection<'f, 'p>
Sourcepub fn add_newline(&mut self) -> bool
pub fn add_newline(&mut self) -> bool
Tries to add a new line and returns true if the area was large enough to fit the new
line.
Trait Implementations§
Auto Trait Implementations§
impl<'f, 'p> Freeze for TextSection<'f, 'p>
impl<'f, 'p> !RefUnwindSafe for TextSection<'f, 'p>
impl<'f, 'p> !Send for TextSection<'f, 'p>
impl<'f, 'p> !Sync for TextSection<'f, 'p>
impl<'f, 'p> Unpin for TextSection<'f, 'p>
impl<'f, 'p> !UnwindSafe for TextSection<'f, 'p>
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<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.