pub struct FeatureSetting {
pub tag: [u8; 4],
pub value: u32,
}Expand description
One OpenType feature the run asks the face for: the tag and the value, where 0 turns the feature off and 1 turns it on. A feature with alternates takes the number of the alternate.
Fields§
§tag: [u8; 4]The four-byte OpenType feature tag, e.g. onum.
value: u32What the feature is set to.
Implementations§
Trait Implementations§
Source§impl Clone for FeatureSetting
impl Clone for FeatureSetting
Source§fn clone(&self) -> FeatureSetting
fn clone(&self) -> FeatureSetting
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FeatureSetting
Source§impl Debug for FeatureSetting
impl Debug for FeatureSetting
Source§impl<'de> Deserialize<'de> for FeatureSetting
impl<'de> Deserialize<'de> for FeatureSetting
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
impl Eq for FeatureSetting
Source§impl Hash for FeatureSetting
impl Hash for FeatureSetting
Source§impl PartialEq for FeatureSetting
impl PartialEq for FeatureSetting
Source§impl Serialize for FeatureSetting
impl Serialize for FeatureSetting
impl StructuralPartialEq for FeatureSetting
Auto Trait Implementations§
impl Freeze for FeatureSetting
impl RefUnwindSafe for FeatureSetting
impl Send for FeatureSetting
impl Sync for FeatureSetting
impl Unpin for FeatureSetting
impl UnsafeUnpin for FeatureSetting
impl UnwindSafe for FeatureSetting
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
§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.