Struct write_fonts::tables::stat::AxisValueRecord
source · pub struct AxisValueRecord {
pub axis_index: u16,
pub value: Fixed,
}Expand description
Part of AxisValueFormat4
Fields§
§axis_index: u16Zero-base index into the axis record array identifying the axis to which this value applies. Must be less than designAxisCount.
value: FixedA numeric value for this attribute value.
Implementations§
Trait Implementations§
source§impl Clone for AxisValueRecord
impl Clone for AxisValueRecord
source§fn clone(&self) -> AxisValueRecord
fn clone(&self) -> AxisValueRecord
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 AxisValueRecord
impl Debug for AxisValueRecord
source§impl Default for AxisValueRecord
impl Default for AxisValueRecord
source§fn default() -> AxisValueRecord
fn default() -> AxisValueRecord
Returns the “default value” for a type. Read more
source§impl FontWrite for AxisValueRecord
impl FontWrite for AxisValueRecord
source§fn write_into(&self, writer: &mut TableWriter)
fn write_into(&self, writer: &mut TableWriter)
Write our data and information about offsets into this TableWriter.
fn name(&self) -> &'static str
source§impl FromObjRef<AxisValueRecord> for AxisValueRecord
impl FromObjRef<AxisValueRecord> for AxisValueRecord
source§fn from_obj_ref(obj: &AxisValueRecord, _: FontData<'_>) -> Self
fn from_obj_ref(obj: &AxisValueRecord, _: FontData<'_>) -> Self
Convert
from to an instance of Self, using the provided data to resolve offsets.source§impl Validate for AxisValueRecord
impl Validate for AxisValueRecord
source§fn validate_impl(&self, _ctx: &mut ValidationCtx)
fn validate_impl(&self, _ctx: &mut ValidationCtx)
Validate this table. Read more
Auto Trait Implementations§
impl RefUnwindSafe for AxisValueRecord
impl Send for AxisValueRecord
impl Sync for AxisValueRecord
impl Unpin for AxisValueRecord
impl UnwindSafe for AxisValueRecord
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<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere U: FromObjRef<T>,
source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.