pub struct SVGDocumentRecord<'a> {
pub start_glyph_id: u16,
pub end_glyph_id: u16,
pub svg_document: &'a [u8],
}
Expand description
One SVG record holding a glyph range and SVGDocumentRecord
.
Fields
start_glyph_id: u16
The starting glyph id.
end_glyph_id: u16
The end glyph id.
Can be the same as start_glyph_id
.
svg_document: &'a [u8]
The SVG document data. Possibly compressed.
If the data is compressed it will begin with 0x1F, 0x8B, 0x08, which is a gzip member header indicating “deflate” as the compression method. See section 2.3.1 of https://www.ietf.org/rfc/rfc1952.txt
Trait Implementations
sourceimpl<'a> ReadBinaryDep<'a> for SVGDocumentRecord<'a>
impl<'a> ReadBinaryDep<'a> for SVGDocumentRecord<'a>
type Args = ReadScope<'a>
type HostType = SVGDocumentRecord<'a>
fn read_dep(
ctxt: &mut ReadCtxt<'a>,
scope: ReadScope<'a>
) -> Result<Self, ParseError>
sourceimpl<'a> ReadFixedSizeDep<'a> for SVGDocumentRecord<'a>
impl<'a> ReadFixedSizeDep<'a> for SVGDocumentRecord<'a>
sourceimpl<'a> TryFrom<&SVGDocumentRecord<'a>> for BitmapGlyph
impl<'a> TryFrom<&SVGDocumentRecord<'a>> for BitmapGlyph
type Error = ParseError
type Error = ParseError
The type returned in the event of a conversion error.
sourcefn try_from(svg_record: &SVGDocumentRecord<'a>) -> Result<Self, ParseError>
fn try_from(svg_record: &SVGDocumentRecord<'a>) -> Result<Self, ParseError>
Performs the conversion.
Auto Trait Implementations
impl<'a> RefUnwindSafe for SVGDocumentRecord<'a>
impl<'a> Send for SVGDocumentRecord<'a>
impl<'a> Sync for SVGDocumentRecord<'a>
impl<'a> Unpin for SVGDocumentRecord<'a>
impl<'a> UnwindSafe for SVGDocumentRecord<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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