#[repr(C, packed(1))]pub struct Feature {
pub feature_type: BigEndian<u16>,
pub feature_settings: BigEndian<u16>,
pub enable_flags: BigEndian<u32>,
pub disable_flags: BigEndian<u32>,
}
Expand description
Used to compute the sub-feature flags for a list of requested features and settings.
Fields§
§feature_type: BigEndian<u16>
The type of feature.
feature_settings: BigEndian<u16>
The feature’s setting (aka selector).
enable_flags: BigEndian<u32>
Flags for the settings that this feature and setting enables.
disable_flags: BigEndian<u32>
Complement of flags for the settings that this feature and setting disable.
Implementations§
Source§impl Feature
impl Feature
Sourcepub fn feature_type(&self) -> u16
pub fn feature_type(&self) -> u16
The type of feature.
Sourcepub fn feature_settings(&self) -> u16
pub fn feature_settings(&self) -> u16
The feature’s setting (aka selector).
Sourcepub fn enable_flags(&self) -> u32
pub fn enable_flags(&self) -> u32
Flags for the settings that this feature and setting enables.
Sourcepub fn disable_flags(&self) -> u32
pub fn disable_flags(&self) -> u32
Complement of flags for the settings that this feature and setting disable.
Trait Implementations§
Source§impl FixedSize for Feature
impl FixedSize for Feature
Source§const RAW_BYTE_LEN: usize = 12usize
const RAW_BYTE_LEN: usize = 12usize
The raw size of this type, in bytes. Read more
Source§impl Ord for Feature
impl Ord for Feature
Source§impl PartialOrd for Feature
impl PartialOrd for Feature
impl AnyBitPattern for Feature
impl Copy for Feature
impl Eq for Feature
impl StructuralPartialEq for Feature
Auto Trait Implementations§
impl Freeze for Feature
impl RefUnwindSafe for Feature
impl Send for Feature
impl Sync for Feature
impl Unpin for Feature
impl UnwindSafe for Feature
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
.