Struct read_fonts::tables::svg::SVGDocumentRecord
source · #[repr(C, packed(1))]pub struct SVGDocumentRecord {
pub start_glyph_id: BigEndian<GlyphId16>,
pub end_glyph_id: BigEndian<GlyphId16>,
pub svg_doc_offset: BigEndian<u32>,
pub svg_doc_length: BigEndian<u32>,
}
Expand description
Fields§
§start_glyph_id: BigEndian<GlyphId16>
The first glyph ID for the range covered by this record.
end_glyph_id: BigEndian<GlyphId16>
The last glyph ID for the range covered by this record.
svg_doc_offset: BigEndian<u32>
Offset from the beginning of the SVGDocumentList to an SVG document. Must be non-zero.
svg_doc_length: BigEndian<u32>
Length of the SVG document data. Must be non-zero.
Implementations§
source§impl SVGDocumentRecord
impl SVGDocumentRecord
sourcepub fn start_glyph_id(&self) -> GlyphId16
pub fn start_glyph_id(&self) -> GlyphId16
The first glyph ID for the range covered by this record.
sourcepub fn end_glyph_id(&self) -> GlyphId16
pub fn end_glyph_id(&self) -> GlyphId16
The last glyph ID for the range covered by this record.
sourcepub fn svg_doc_offset(&self) -> u32
pub fn svg_doc_offset(&self) -> u32
Offset from the beginning of the SVGDocumentList to an SVG document. Must be non-zero.
sourcepub fn svg_doc_length(&self) -> u32
pub fn svg_doc_length(&self) -> u32
Length of the SVG document data. Must be non-zero.
Trait Implementations§
source§impl Clone for SVGDocumentRecord
impl Clone for SVGDocumentRecord
source§fn clone(&self) -> SVGDocumentRecord
fn clone(&self) -> SVGDocumentRecord
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 Debug for SVGDocumentRecord
impl Debug for SVGDocumentRecord
source§impl FixedSize for SVGDocumentRecord
impl FixedSize for SVGDocumentRecord
source§const RAW_BYTE_LEN: usize = 12usize
const RAW_BYTE_LEN: usize = 12usize
The raw size of this type, in bytes. Read more
source§impl Hash for SVGDocumentRecord
impl Hash for SVGDocumentRecord
source§impl Ord for SVGDocumentRecord
impl Ord for SVGDocumentRecord
source§fn cmp(&self, other: &SVGDocumentRecord) -> Ordering
fn cmp(&self, other: &SVGDocumentRecord) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for SVGDocumentRecord
impl PartialEq for SVGDocumentRecord
source§impl PartialOrd for SVGDocumentRecord
impl PartialOrd for SVGDocumentRecord
source§impl<'a> SomeRecord<'a> for SVGDocumentRecord
impl<'a> SomeRecord<'a> for SVGDocumentRecord
fn traverse(self, data: FontData<'a>) -> RecordResolver<'a>
impl AnyBitPattern for SVGDocumentRecord
impl Copy for SVGDocumentRecord
impl Eq for SVGDocumentRecord
impl StructuralPartialEq for SVGDocumentRecord
Auto Trait Implementations§
impl Freeze for SVGDocumentRecord
impl RefUnwindSafe for SVGDocumentRecord
impl Send for SVGDocumentRecord
impl Sync for SVGDocumentRecord
impl Unpin for SVGDocumentRecord
impl UnwindSafe for SVGDocumentRecord
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
source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
source§type Bits = T
type Bits = T
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)