Struct read_fonts::tables::fvar::VariationAxisRecord
source · #[repr(C, packed(1))]pub struct VariationAxisRecord {
pub axis_tag: BigEndian<Tag>,
pub min_value: BigEndian<Fixed>,
pub default_value: BigEndian<Fixed>,
pub max_value: BigEndian<Fixed>,
pub flags: BigEndian<u16>,
pub axis_name_id: BigEndian<NameId>,
}
Expand description
Fields§
§axis_tag: BigEndian<Tag>
Tag identifying the design variation for the axis.
min_value: BigEndian<Fixed>
The minimum coordinate value for the axis.
default_value: BigEndian<Fixed>
The default coordinate value for the axis.
max_value: BigEndian<Fixed>
The maximum coordinate value for the axis.
flags: BigEndian<u16>
Axis qualifiers — see details below.
axis_name_id: BigEndian<NameId>
The name ID for entries in the ‘name’ table that provide a display name for this axis.
Implementations§
source§impl VariationAxisRecord
impl VariationAxisRecord
sourcepub fn default_value(&self) -> Fixed
pub fn default_value(&self) -> Fixed
The default coordinate value for the axis.
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 name for this axis.
Trait Implementations§
source§impl Clone for VariationAxisRecord
impl Clone for VariationAxisRecord
source§fn clone(&self) -> VariationAxisRecord
fn clone(&self) -> VariationAxisRecord
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 VariationAxisRecord
impl Debug for VariationAxisRecord
source§impl FixedSize for VariationAxisRecord
impl FixedSize for VariationAxisRecord
source§const RAW_BYTE_LEN: usize = 20usize
const RAW_BYTE_LEN: usize = 20usize
The raw size of this type, in bytes. Read more
source§impl Hash for VariationAxisRecord
impl Hash for VariationAxisRecord
source§impl Ord for VariationAxisRecord
impl Ord for VariationAxisRecord
source§fn cmp(&self, other: &VariationAxisRecord) -> Ordering
fn cmp(&self, other: &VariationAxisRecord) -> 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 VariationAxisRecord
impl PartialEq for VariationAxisRecord
source§fn eq(&self, other: &VariationAxisRecord) -> bool
fn eq(&self, other: &VariationAxisRecord) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for VariationAxisRecord
impl PartialOrd for VariationAxisRecord
source§fn partial_cmp(&self, other: &VariationAxisRecord) -> Option<Ordering>
fn partial_cmp(&self, other: &VariationAxisRecord) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<'a> SomeRecord<'a> for VariationAxisRecord
impl<'a> SomeRecord<'a> for VariationAxisRecord
fn traverse(self, data: FontData<'a>) -> RecordResolver<'a>
impl AnyBitPattern for VariationAxisRecord
impl Copy for VariationAxisRecord
impl Eq for VariationAxisRecord
impl StructuralPartialEq for VariationAxisRecord
Auto Trait Implementations§
impl Freeze for VariationAxisRecord
impl RefUnwindSafe for VariationAxisRecord
impl Send for VariationAxisRecord
impl Sync for VariationAxisRecord
impl Unpin for VariationAxisRecord
impl UnwindSafe for VariationAxisRecord
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,
§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
.