Struct owned_ttf_parser::svg::SvgDocument
source · pub struct SvgDocument<'a> {
pub data: &'a [u8],
pub start_glyph_id: GlyphId,
pub end_glyph_id: GlyphId,
}
Expand description
An SVG documents.
Fields§
§data: &'a [u8]
The SVG document data.
Can be stored as a string or as a gzip compressed data, aka SVGZ.
start_glyph_id: GlyphId
The first glyph ID for the range covered by this record.
end_glyph_id: GlyphId
The last glyph ID, inclusive, for the range covered by this record.
Implementations§
source§impl SvgDocument<'_>
impl SvgDocument<'_>
sourcepub fn glyphs_range(&self) -> RangeInclusive<GlyphId>
pub fn glyphs_range(&self) -> RangeInclusive<GlyphId>
Returns the glyphs range.
Trait Implementations§
source§impl<'a> Clone for SvgDocument<'a>
impl<'a> Clone for SvgDocument<'a>
source§fn clone(&self) -> SvgDocument<'a>
fn clone(&self) -> SvgDocument<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for SvgDocument<'a>
impl<'a> Debug for SvgDocument<'a>
impl<'a> Copy for SvgDocument<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for SvgDocument<'a>
impl<'a> Send for SvgDocument<'a>
impl<'a> Sync for SvgDocument<'a>
impl<'a> Unpin for SvgDocument<'a>
impl<'a> UnwindSafe for SvgDocument<'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