pub struct PdfFontGlyphs<'a> { /* private fields */ }Expand description
A collection of all the PdfFontGlyph objects in a PdfFont.
Implementations§
Source§impl<'a> PdfFontGlyphs<'a>
impl<'a> PdfFontGlyphs<'a>
Sourcepub fn len(&self) -> PdfFontGlyphIndex
pub fn len(&self) -> PdfFontGlyphIndex
Returns the number of glyphs in this PdfFontGlyphs collection.
Sourcepub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Returns true if this PdfFontGlyphs collection is empty.
Sourcepub fn as_range(&self) -> Range<PdfFontGlyphIndex>
pub fn as_range(&self) -> Range<PdfFontGlyphIndex>
Returns a Range from 0..(number of glyphs) for this PdfFontGlyphs collection.
Sourcepub fn as_range_inclusive(&self) -> RangeInclusive<PdfFontGlyphIndex>
pub fn as_range_inclusive(&self) -> RangeInclusive<PdfFontGlyphIndex>
Returns an inclusive Range from 0..=(number of glyphs - 1) for this PdfFontGlyphs collection.
Sourcepub fn get(
&self,
index: PdfFontGlyphIndex,
) -> Result<PdfFontGlyph<'a>, PdfiumError>
pub fn get( &self, index: PdfFontGlyphIndex, ) -> Result<PdfFontGlyph<'a>, PdfiumError>
Returns a single PdfFontGlyph from this PdfFontGlyphs collection.
Sourcepub fn iter(&self) -> PdfFontGlyphsIterator<'_> ⓘ
pub fn iter(&self) -> PdfFontGlyphsIterator<'_> ⓘ
Returns an iterator over all the glyphs in this PdfFontGlyphs collection.
Trait Implementations§
Source§impl<'a> PdfiumLibraryBindingsAccessor<'a> for PdfFontGlyphs<'a>
impl<'a> PdfiumLibraryBindingsAccessor<'a> for PdfFontGlyphs<'a>
fn bindings(&self) -> &'a dyn PdfiumLibraryBindings
impl<'a> Send for PdfFontGlyphs<'a>
Available on crate feature
thread_safe only.impl<'a> Sync for PdfFontGlyphs<'a>
Available on crate feature
thread_safe only.Auto Trait Implementations§
impl<'a> !Freeze for PdfFontGlyphs<'a>
impl<'a> !RefUnwindSafe for PdfFontGlyphs<'a>
impl<'a> Unpin for PdfFontGlyphs<'a>
impl<'a> UnsafeUnpin for PdfFontGlyphs<'a>
impl<'a> UnwindSafe for PdfFontGlyphs<'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