#[repr(C, packed(1))]pub struct RangeRecord {
pub start_glyph_id: BigEndian<GlyphId16>,
pub end_glyph_id: BigEndian<GlyphId16>,
pub start_coverage_index: BigEndian<u16>,
}
Expand description
Used in CoverageFormat2
Fields§
§start_glyph_id: BigEndian<GlyphId16>
First glyph ID in the range
end_glyph_id: BigEndian<GlyphId16>
Last glyph ID in the range
start_coverage_index: BigEndian<u16>
Coverage Index of first glyph ID in range
Implementations§
Source§impl RangeRecord
impl RangeRecord
Sourcepub fn start_glyph_id(&self) -> GlyphId16
pub fn start_glyph_id(&self) -> GlyphId16
First glyph ID in the range
Sourcepub fn end_glyph_id(&self) -> GlyphId16
pub fn end_glyph_id(&self) -> GlyphId16
Last glyph ID in the range
Sourcepub fn start_coverage_index(&self) -> u16
pub fn start_coverage_index(&self) -> u16
Coverage Index of first glyph ID in range
Trait Implementations§
Source§impl Clone for RangeRecord
impl Clone for RangeRecord
Source§fn clone(&self) -> RangeRecord
fn clone(&self) -> RangeRecord
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 RangeRecord
impl Debug for RangeRecord
Source§impl FixedSize for RangeRecord
impl FixedSize for RangeRecord
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 RangeRecord
impl Hash for RangeRecord
Source§impl Ord for RangeRecord
impl Ord for RangeRecord
Source§fn cmp(&self, other: &RangeRecord) -> Ordering
fn cmp(&self, other: &RangeRecord) -> 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 RangeRecord
impl PartialEq for RangeRecord
Source§impl PartialOrd for RangeRecord
impl PartialOrd for RangeRecord
impl AnyBitPattern for RangeRecord
impl Copy for RangeRecord
impl Eq for RangeRecord
impl StructuralPartialEq for RangeRecord
Auto Trait Implementations§
impl Freeze for RangeRecord
impl RefUnwindSafe for RangeRecord
impl Send for RangeRecord
impl Sync for RangeRecord
impl Unpin for RangeRecord
impl UnwindSafe for RangeRecord
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
.