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: u16
The 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
sourceimpl<'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
sourceimpl<'a> ReadBinary<'a> for SvgTable<'a>
impl<'a> ReadBinary<'a> for SvgTable<'a>
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more