Struct read_fonts::tables::layout::ClassRangeRecord
source · #[repr(C, packed(1))]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
source§impl Hash for ClassRangeRecord
impl Hash for ClassRangeRecord
source§impl Ord for ClassRangeRecord
impl Ord for ClassRangeRecord
source§fn cmp(&self, other: &ClassRangeRecord) -> Ordering
fn cmp(&self, other: &ClassRangeRecord) -> 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 ClassRangeRecord
impl PartialEq for ClassRangeRecord
source§fn eq(&self, other: &ClassRangeRecord) -> bool
fn eq(&self, other: &ClassRangeRecord) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ClassRangeRecord
impl PartialOrd for ClassRangeRecord
source§fn partial_cmp(&self, other: &ClassRangeRecord) -> Option<Ordering>
fn partial_cmp(&self, other: &ClassRangeRecord) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<'a> SomeRecord<'a> for ClassRangeRecord
impl<'a> SomeRecord<'a> for ClassRangeRecord
fn traverse(self, data: FontData<'a>) -> RecordResolver<'a>
impl AnyBitPattern for ClassRangeRecord
impl Copy for ClassRangeRecord
impl Eq for ClassRangeRecord
impl StructuralPartialEq for ClassRangeRecord
Auto Trait Implementations§
impl Freeze for ClassRangeRecord
impl RefUnwindSafe for ClassRangeRecord
impl Send for ClassRangeRecord
impl Sync for ClassRangeRecord
impl Unpin for ClassRangeRecord
impl UnwindSafe for ClassRangeRecord
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,
§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
.