Struct read_fonts::tables::avar::AxisValueMap
source · #[repr(C, packed(1))]pub struct AxisValueMap {
pub from_coordinate: BigEndian<F2Dot14>,
pub to_coordinate: BigEndian<F2Dot14>,
}
Expand description
AxisValueMap record
Fields§
§from_coordinate: BigEndian<F2Dot14>
A normalized coordinate value obtained using default normalization.
to_coordinate: BigEndian<F2Dot14>
The modified, normalized coordinate value.
Implementations§
source§impl AxisValueMap
impl AxisValueMap
sourcepub fn from_coordinate(&self) -> F2Dot14
pub fn from_coordinate(&self) -> F2Dot14
A normalized coordinate value obtained using default normalization.
sourcepub fn to_coordinate(&self) -> F2Dot14
pub fn to_coordinate(&self) -> F2Dot14
The modified, normalized coordinate value.
Trait Implementations§
source§impl Clone for AxisValueMap
impl Clone for AxisValueMap
source§fn clone(&self) -> AxisValueMap
fn clone(&self) -> AxisValueMap
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 AxisValueMap
impl Debug for AxisValueMap
source§impl FixedSize for AxisValueMap
impl FixedSize for AxisValueMap
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 AxisValueMap
impl Hash for AxisValueMap
source§impl Ord for AxisValueMap
impl Ord for AxisValueMap
source§fn cmp(&self, other: &AxisValueMap) -> Ordering
fn cmp(&self, other: &AxisValueMap) -> 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 AxisValueMap
impl PartialEq for AxisValueMap
source§fn eq(&self, other: &AxisValueMap) -> bool
fn eq(&self, other: &AxisValueMap) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for AxisValueMap
impl PartialOrd for AxisValueMap
source§fn partial_cmp(&self, other: &AxisValueMap) -> Option<Ordering>
fn partial_cmp(&self, other: &AxisValueMap) -> 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 AxisValueMap
impl<'a> SomeRecord<'a> for AxisValueMap
fn traverse(self, data: FontData<'a>) -> RecordResolver<'a>
impl AnyBitPattern for AxisValueMap
impl Copy for AxisValueMap
impl Eq for AxisValueMap
impl StructuralPartialEq for AxisValueMap
Auto Trait Implementations§
impl Freeze for AxisValueMap
impl RefUnwindSafe for AxisValueMap
impl Send for AxisValueMap
impl Sync for AxisValueMap
impl Unpin for AxisValueMap
impl UnwindSafe for AxisValueMap
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
.