#[repr(C, packed(1))]pub struct ClassRangeRecord2 {
pub start_glyph_id: BigEndian<GlyphId24>,
pub end_glyph_id: BigEndian<GlyphId24>,
pub class: BigEndian<u16>,
}Expand description
ClassRangeRecord2 (ISO/IEC 14496-22:2026).
Fields§
§start_glyph_id: BigEndian<GlyphId24>First glyph ID in the range
end_glyph_id: BigEndian<GlyphId24>Last glyph ID in the range
class: BigEndian<u16>Applied to all glyphs in the range
Implementations§
Source§impl ClassRangeRecord2
impl ClassRangeRecord2
Sourcepub fn start_glyph_id(&self) -> GlyphId24
pub fn start_glyph_id(&self) -> GlyphId24
First glyph ID in the range
Sourcepub fn end_glyph_id(&self) -> GlyphId24
pub fn end_glyph_id(&self) -> GlyphId24
Last glyph ID in the range
Source§impl ClassRangeRecord2
impl ClassRangeRecord2
Sourcepub fn population(&self) -> usize
pub fn population(&self) -> usize
Return the number of glyphs explicitly assigned to a class in this record
Trait Implementations§
impl AnyBitPattern for ClassRangeRecord2
Source§impl Clone for ClassRangeRecord2
impl Clone for ClassRangeRecord2
impl Copy for ClassRangeRecord2
Source§impl Debug for ClassRangeRecord2
impl Debug for ClassRangeRecord2
impl Eq for ClassRangeRecord2
Source§impl FixedSize for ClassRangeRecord2
impl FixedSize for ClassRangeRecord2
Source§const RAW_BYTE_LEN: usize
const RAW_BYTE_LEN: usize
The raw size of this type, in bytes. Read more
Source§impl Hash for ClassRangeRecord2
impl Hash for ClassRangeRecord2
Source§impl Ord for ClassRangeRecord2
impl Ord for ClassRangeRecord2
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ClassRangeRecord2
impl PartialEq for ClassRangeRecord2
Source§impl PartialOrd for ClassRangeRecord2
impl PartialOrd for ClassRangeRecord2
impl StructuralPartialEq for ClassRangeRecord2
Auto Trait Implementations§
impl Freeze for ClassRangeRecord2
impl RefUnwindSafe for ClassRangeRecord2
impl Send for ClassRangeRecord2
impl Sync for ClassRangeRecord2
impl Unpin for ClassRangeRecord2
impl UnsafeUnpin for ClassRangeRecord2
impl UnwindSafe for ClassRangeRecord2
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.