#[repr(C, packed(1))]pub struct SettingName {
pub setting: BigEndian<u16>,
pub name_index: BigEndian<NameId>,
}
Expand description
Associates a setting with a name identifier.
Fields§
§setting: BigEndian<u16>
The setting.
name_index: BigEndian<NameId>
The name table index for the setting’s name.
Implementations§
Source§impl SettingName
impl SettingName
Trait Implementations§
Source§impl Clone for SettingName
impl Clone for SettingName
Source§fn clone(&self) -> SettingName
fn clone(&self) -> SettingName
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 SettingName
impl Debug for SettingName
Source§impl FixedSize for SettingName
impl FixedSize for SettingName
Source§const RAW_BYTE_LEN: usize = 4usize
const RAW_BYTE_LEN: usize = 4usize
The raw size of this type, in bytes. Read more
Source§impl Hash for SettingName
impl Hash for SettingName
Source§impl Ord for SettingName
impl Ord for SettingName
Source§fn cmp(&self, other: &SettingName) -> Ordering
fn cmp(&self, other: &SettingName) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SettingName
impl PartialEq for SettingName
Source§impl PartialOrd for SettingName
impl PartialOrd for SettingName
impl AnyBitPattern for SettingName
impl Copy for SettingName
impl Eq for SettingName
impl StructuralPartialEq for SettingName
Auto Trait Implementations§
impl Freeze for SettingName
impl RefUnwindSafe for SettingName
impl Send for SettingName
impl Sync for SettingName
impl Unpin for SettingName
impl UnwindSafe for SettingName
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
.