Struct read_fonts::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
sourceimpl 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
sourceimpl Clone for RangeRecord
impl Clone for RangeRecord
sourcefn clone(&self) -> RangeRecord
fn clone(&self) -> RangeRecord
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for RangeRecord
impl Debug for RangeRecord
sourceimpl FixedSize for RangeRecord
impl FixedSize for RangeRecord
sourceconst RAW_BYTE_LEN: usize = 6usize
const RAW_BYTE_LEN: usize = 6usize
The raw size of this type, in bytes. Read more
sourceimpl<'a> SomeRecord<'a> for RangeRecord
impl<'a> SomeRecord<'a> for RangeRecord
fn traverse(self, data: FontData<'a>) -> RecordResolver<'a>
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more