Struct read_fonts::tables::layout::FeatureRecord
source · #[repr(C, packed(1))]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 AnyBitPattern for FeatureRecord
impl Copy for FeatureRecord
Auto Trait Implementations§
impl Freeze for FeatureRecord
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
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
.source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)