#[repr(C, packed(1))]pub struct AxisRecord {
pub axis_tag: BigEndian<Tag>,
pub axis_name_id: BigEndian<NameId>,
pub axis_ordering: BigEndian<u16>,
}
Expand description
Fields§
§axis_tag: BigEndian<Tag>
A tag identifying the axis of design variation.
axis_name_id: BigEndian<NameId>
The name ID for entries in the ‘name’ table that provide a display string for this axis.
axis_ordering: BigEndian<u16>
A value that applications can use to determine primary sorting of face names, or for ordering of labels when composing family or face names.
Implementations§
Source§impl AxisRecord
impl AxisRecord
Sourcepub fn axis_name_id(&self) -> NameId
pub fn axis_name_id(&self) -> NameId
The name ID for entries in the ‘name’ table that provide a display string for this axis.
Sourcepub fn axis_ordering(&self) -> u16
pub fn axis_ordering(&self) -> u16
A value that applications can use to determine primary sorting of face names, or for ordering of labels when composing family or face names.
Trait Implementations§
Source§impl Clone for AxisRecord
impl Clone for AxisRecord
Source§fn clone(&self) -> AxisRecord
fn clone(&self) -> AxisRecord
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 AxisRecord
impl Debug for AxisRecord
Source§impl FixedSize for AxisRecord
impl FixedSize for AxisRecord
Source§const RAW_BYTE_LEN: usize = 8usize
const RAW_BYTE_LEN: usize = 8usize
The raw size of this type, in bytes. Read more
Source§impl Hash for AxisRecord
impl Hash for AxisRecord
Source§impl Ord for AxisRecord
impl Ord for AxisRecord
Source§fn cmp(&self, other: &AxisRecord) -> Ordering
fn cmp(&self, other: &AxisRecord) -> 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 AxisRecord
impl PartialEq for AxisRecord
Source§impl PartialOrd for AxisRecord
impl PartialOrd for AxisRecord
impl AnyBitPattern for AxisRecord
impl Copy for AxisRecord
impl Eq for AxisRecord
impl StructuralPartialEq for AxisRecord
Auto Trait Implementations§
impl Freeze for AxisRecord
impl RefUnwindSafe for AxisRecord
impl Send for AxisRecord
impl Sync for AxisRecord
impl Unpin for AxisRecord
impl UnwindSafe for AxisRecord
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
.