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> Freeze for SvgDocument<'a>
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