#[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
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
.