#[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
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
.