pub struct RunText { /* private fields */ }Expand description
The text of one run and, for each glyph in drawing order, the byte range of its cluster in
that text. Glyphs of one cluster share a range; pdfrum writes it once, as /ActualText
when the glyphs cannot carry it in the font’s ToUnicode map.
Implementations§
Source§impl RunText
impl RunText
Sourcepub fn from_glyphs<'a>(
glyphs: impl IntoIterator<Item = GlyphSource<'a>>,
) -> Self
pub fn from_glyphs<'a>( glyphs: impl IntoIterator<Item = GlyphSource<'a>>, ) -> Self
The run text for glyphs in drawing order.
Sourcepub fn clusters(&self) -> &[Range<usize>]
pub fn clusters(&self) -> &[Range<usize>]
Each glyph’s cluster range in RunText::text.
Trait Implementations§
impl Eq for RunText
impl StructuralPartialEq for RunText
Auto Trait Implementations§
impl Freeze for RunText
impl RefUnwindSafe for RunText
impl Send for RunText
impl Sync for RunText
impl Unpin for RunText
impl UnsafeUnpin for RunText
impl UnwindSafe for RunText
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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.