Struct read_fonts::tables::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§
source§impl 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§
source§impl Clone for FeatureRecord
impl Clone for FeatureRecord
source§fn clone(&self) -> FeatureRecord
fn clone(&self) -> FeatureRecord
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 FeatureRecord
impl Debug for FeatureRecord
source§impl FixedSize for FeatureRecord
impl FixedSize for FeatureRecord
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 FeatureRecord
impl<'a> SomeRecord<'a> for FeatureRecord
fn traverse(self, data: FontData<'a>) -> RecordResolver<'a>
impl FromBytes for FeatureRecord
SAFETY: see the FromBytes trait documentation.
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§
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