Struct read_fonts::tables::layout::RangeRecord
source · #[repr(C)]#[repr(packed)]pub struct RangeRecord {
pub start_glyph_id: BigEndian<GlyphId>,
pub end_glyph_id: BigEndian<GlyphId>,
pub start_coverage_index: BigEndian<u16>,
}Expand description
Used in CoverageFormat2
Fields§
§start_glyph_id: BigEndian<GlyphId>First glyph ID in the range
end_glyph_id: BigEndian<GlyphId>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) -> 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
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<'a> SomeRecord<'a> for RangeRecord
impl<'a> SomeRecord<'a> for RangeRecord
fn traverse(self, data: FontData<'a>) -> RecordResolver<'a>
impl FromBytes for RangeRecord
SAFETY: see the FromBytes trait documentation.
Auto Trait Implementations§
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