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