pub struct SvgTable<'a> {
pub version: u16,
pub document_records: ReadArray<'a, SVGDocumentRecord<'a>>,
}Expand description
Holds the records from the SVG table.
Fields§
§version: u16The version of the table. Only version 0 is supported.
document_records: ReadArray<'a, SVGDocumentRecord<'a>>The SVG document records.
Example:
ⓘ
for record in svg.document_records.iter_res() {
let record = record?;
// Use record here
}Implementations§
Source§impl<'a> SvgTable<'a>
impl<'a> SvgTable<'a>
Sourcepub fn lookup_glyph(
&self,
glyph_id: u16,
) -> Result<Option<SVGDocumentRecord<'a>>, ParseError>
pub fn lookup_glyph( &self, glyph_id: u16, ) -> Result<Option<SVGDocumentRecord<'a>>, ParseError>
Locate the SVG record for the supplied glyph_id.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for SvgTable<'a>
impl<'a> RefUnwindSafe for SvgTable<'a>
impl<'a> Send for SvgTable<'a>
impl<'a> Sync for SvgTable<'a>
impl<'a> Unpin for SvgTable<'a>
impl<'a> UnwindSafe for SvgTable<'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