#[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
source§impl<'a> SomeRecord<'a> for SettingName
impl<'a> SomeRecord<'a> for SettingName
fn traverse(self, data: FontData<'a>) -> RecordResolver<'a>
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
.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
)