Struct ttf_parser::fvar::VariationAxis
source · #[repr(C)]pub struct VariationAxis {
pub tag: Tag,
pub min_value: f32,
pub def_value: f32,
pub max_value: f32,
pub name_id: u16,
pub hidden: bool,
}
Expand description
Fields§
§tag: Tag
§min_value: f32
§def_value: f32
§max_value: f32
§name_id: u16
An axis name in the name
table.
Implementations§
source§impl VariationAxis
impl VariationAxis
sourcepub(crate) fn normalized_value(&self, v: f32) -> NormalizedCoordinate
pub(crate) fn normalized_value(&self, v: f32) -> NormalizedCoordinate
Returns a normalized variation coordinate for this axis.
Trait Implementations§
source§impl Clone for VariationAxis
impl Clone for VariationAxis
source§fn clone(&self) -> VariationAxis
fn clone(&self) -> VariationAxis
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 VariationAxis
impl Debug for VariationAxis
source§impl FromData for VariationAxis
impl FromData for VariationAxis
source§impl PartialEq for VariationAxis
impl PartialEq for VariationAxis
impl Copy for VariationAxis
impl StructuralPartialEq for VariationAxis
Auto Trait Implementations§
impl Freeze for VariationAxis
impl RefUnwindSafe for VariationAxis
impl Send for VariationAxis
impl Sync for VariationAxis
impl Unpin for VariationAxis
impl UnwindSafe for VariationAxis
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> 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
)