logo
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

Locate the SVG record for the supplied glyph_id.

Trait Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.