pub enum AxisValue {
Format1(AxisValueFormat1),
Format2(AxisValueFormat2),
Format3(AxisValueFormat3),
Format4(AxisValueFormat4),
}
Expand description
Variants§
Format1(AxisValueFormat1)
Format2(AxisValueFormat2)
Format3(AxisValueFormat3)
Format4(AxisValueFormat4)
Implementations§
Source§impl AxisValue
impl AxisValue
Sourcepub fn format_1(
axis_index: u16,
flags: AxisValueTableFlags,
value_name_id: NameId,
value: Fixed,
) -> Self
pub fn format_1( axis_index: u16, flags: AxisValueTableFlags, value_name_id: NameId, value: Fixed, ) -> Self
Construct a new AxisValueFormat1
subtable
Sourcepub fn format_2(
axis_index: u16,
flags: AxisValueTableFlags,
value_name_id: NameId,
nominal_value: Fixed,
range_min_value: Fixed,
range_max_value: Fixed,
) -> Self
pub fn format_2( axis_index: u16, flags: AxisValueTableFlags, value_name_id: NameId, nominal_value: Fixed, range_min_value: Fixed, range_max_value: Fixed, ) -> Self
Construct a new AxisValueFormat2
subtable
Sourcepub fn format_3(
axis_index: u16,
flags: AxisValueTableFlags,
value_name_id: NameId,
value: Fixed,
linked_value: Fixed,
) -> Self
pub fn format_3( axis_index: u16, flags: AxisValueTableFlags, value_name_id: NameId, value: Fixed, linked_value: Fixed, ) -> Self
Construct a new AxisValueFormat3
subtable
Sourcepub fn format_4(
flags: AxisValueTableFlags,
value_name_id: NameId,
axis_values: Vec<AxisValueRecord>,
) -> Self
pub fn format_4( flags: AxisValueTableFlags, value_name_id: NameId, axis_values: Vec<AxisValueRecord>, ) -> Self
Construct a new AxisValueFormat4
subtable
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AxisValue
impl<'de> Deserialize<'de> for AxisValue
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FontWrite for AxisValue
impl FontWrite for AxisValue
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.
Source§fn table_type(&self) -> TableType
fn table_type(&self) -> TableType
The type of this table. Read more
Source§impl From<AxisValueFormat1> for AxisValue
impl From<AxisValueFormat1> for AxisValue
Source§fn from(src: AxisValueFormat1) -> AxisValue
fn from(src: AxisValueFormat1) -> AxisValue
Converts to this type from the input type.
Source§impl From<AxisValueFormat2> for AxisValue
impl From<AxisValueFormat2> for AxisValue
Source§fn from(src: AxisValueFormat2) -> AxisValue
fn from(src: AxisValueFormat2) -> AxisValue
Converts to this type from the input type.
Source§impl From<AxisValueFormat3> for AxisValue
impl From<AxisValueFormat3> for AxisValue
Source§fn from(src: AxisValueFormat3) -> AxisValue
fn from(src: AxisValueFormat3) -> AxisValue
Converts to this type from the input type.
Source§impl From<AxisValueFormat4> for AxisValue
impl From<AxisValueFormat4> for AxisValue
Source§fn from(src: AxisValueFormat4) -> AxisValue
fn from(src: AxisValueFormat4) -> AxisValue
Converts to this type from the input type.
Source§impl FromObjRef<AxisValue<'_>> for AxisValue
impl FromObjRef<AxisValue<'_>> for AxisValue
Source§fn from_obj_ref(obj: &AxisValue<'_>, _: FontData<'_>) -> Self
fn from_obj_ref(obj: &AxisValue<'_>, _: FontData<'_>) -> Self
Convert
from
to an instance of Self
, using the provided data to resolve offsets.Source§impl FromTableRef<AxisValue<'_>> for AxisValue
impl FromTableRef<AxisValue<'_>> for AxisValue
fn from_table_ref(from: &T) -> Self
Source§impl Ord for AxisValue
impl Ord for AxisValue
Source§impl PartialOrd for AxisValue
impl PartialOrd for AxisValue
Source§impl Validate for AxisValue
impl Validate for AxisValue
Source§fn validate_impl(&self, ctx: &mut ValidationCtx)
fn validate_impl(&self, ctx: &mut ValidationCtx)
Validate this table. Read more
impl Eq for AxisValue
impl StructuralPartialEq for AxisValue
Auto Trait Implementations§
impl Freeze for AxisValue
impl RefUnwindSafe for AxisValue
impl Send for AxisValue
impl Sync for AxisValue
impl Unpin for AxisValue
impl UnwindSafe for AxisValue
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§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<'a, T> FontReadWithArgs<'a> for Twhere
T: FontRead<'a>,
impl<'a, T> FontReadWithArgs<'a> for Twhere
T: FontRead<'a>,
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.