#[non_exhaustive]pub struct GlyphSvg<'a> {
pub data: &'a [u8],
pub start_glyph_id: GlyphId,
pub end_glyph_id: GlyphId,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.data: &'a [u8]
Raw image data, it should be rendered or decompressed (in case of SVGZ) by the caller.. Note that the data includes records for multiple Glyphs.
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.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for GlyphSvg<'a>
impl<'a> RefUnwindSafe for GlyphSvg<'a>
impl<'a> Send for GlyphSvg<'a>
impl<'a> Sync for GlyphSvg<'a>
impl<'a> Unpin for GlyphSvg<'a>
impl<'a> UnwindSafe for GlyphSvg<'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