Struct read_fonts::tables::layout::ClassRangeRecord
source · #[repr(C)]#[repr(packed)]pub struct ClassRangeRecord {
pub start_glyph_id: BigEndian<GlyphId>,
pub end_glyph_id: BigEndian<GlyphId>,
pub class: BigEndian<u16>,
}Expand description
Used in ClassDefFormat2
Fields§
§start_glyph_id: BigEndian<GlyphId>First glyph ID in the range
end_glyph_id: BigEndian<GlyphId>Last glyph ID in the range
class: BigEndian<u16>Applied to all glyphs in the range
Implementations§
source§impl ClassRangeRecord
impl ClassRangeRecord
sourcepub fn start_glyph_id(&self) -> GlyphId
pub fn start_glyph_id(&self) -> GlyphId
First glyph ID in the range
sourcepub fn end_glyph_id(&self) -> GlyphId
pub fn end_glyph_id(&self) -> GlyphId
Last glyph ID in the range
Trait Implementations§
source§impl Clone for ClassRangeRecord
impl Clone for ClassRangeRecord
source§fn clone(&self) -> ClassRangeRecord
fn clone(&self) -> ClassRangeRecord
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 ClassRangeRecord
impl Debug for ClassRangeRecord
source§impl FixedSize for ClassRangeRecord
impl FixedSize for ClassRangeRecord
source§const RAW_BYTE_LEN: usize = 6usize
const RAW_BYTE_LEN: usize = 6usize
The raw size of this type, in bytes. Read more