pub(crate) enum WordItem {
Word(Word),
HardBreak,
}Expand description
Inline item emitted by collect_words. The greedy line-breaker
(and, later, the Knuth-Plass breaker) walks the stream and emits
page geometry; HardBreak is a sentinel that forces a flush of
the in-progress line without contributing any glyphs.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WordItem
impl RefUnwindSafe for WordItem
impl Send for WordItem
impl Sync for WordItem
impl Unpin for WordItem
impl UnsafeUnpin for WordItem
impl UnwindSafe for WordItem
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
§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.