Struct read_fonts::layout::FeatureRecord
source · [−]#[repr(C)]#[repr(packed)]pub struct FeatureRecord {
pub feature_tag: BigEndian<Tag>,
pub feature_offset: BigEndian<Offset16>,
}Expand description
Part of FeatureList
Fields
feature_tag: BigEndian<Tag>4-byte feature identification tag
feature_offset: BigEndian<Offset16>Offset to Feature table, from beginning of FeatureList
Implementations
sourceimpl FeatureRecord
impl FeatureRecord
sourcepub fn feature_tag(&self) -> Tag
pub fn feature_tag(&self) -> Tag
4-byte feature identification tag
sourcepub fn feature_offset(&self) -> Offset16
pub fn feature_offset(&self) -> Offset16
Offset to Feature table, from beginning of FeatureList
Trait Implementations
sourceimpl Clone for FeatureRecord
impl Clone for FeatureRecord
sourcefn clone(&self) -> FeatureRecord
fn clone(&self) -> FeatureRecord
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 FeatureRecord
impl Debug for FeatureRecord
sourceimpl FixedSize for FeatureRecord
impl FixedSize for FeatureRecord
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 FeatureRecord
impl<'a> SomeRecord<'a> for FeatureRecord
fn traverse(self, data: FontData<'a>) -> RecordResolver<'a>
Auto Trait Implementations
impl RefUnwindSafe for FeatureRecord
impl Send for FeatureRecord
impl Sync for FeatureRecord
impl Unpin for FeatureRecord
impl UnwindSafe for FeatureRecord
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