pub struct TextFontFeatureSetting {
pub tag: SmolStr,
pub value: u32,
}Expand description
A single OpenType font feature setting, identified by a 4-byte OpenType feature tag.
Fields§
§tag: SmolStr4-byte OpenType feature tag (e.g. “liga”, “calt”, “ss01”).
value: u32OpenType feature value (best-effort). Conventionally 0=off, 1=on.
Trait Implementations§
Source§impl Clone for TextFontFeatureSetting
impl Clone for TextFontFeatureSetting
Source§fn clone(&self) -> TextFontFeatureSetting
fn clone(&self) -> TextFontFeatureSetting
Returns a duplicate 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 TextFontFeatureSetting
impl Debug for TextFontFeatureSetting
Source§impl<'de> Deserialize<'de> for TextFontFeatureSetting
impl<'de> Deserialize<'de> for TextFontFeatureSetting
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 PartialEq for TextFontFeatureSetting
impl PartialEq for TextFontFeatureSetting
Source§impl Serialize for TextFontFeatureSetting
impl Serialize for TextFontFeatureSetting
impl Eq for TextFontFeatureSetting
impl StructuralPartialEq for TextFontFeatureSetting
Auto Trait Implementations§
impl Freeze for TextFontFeatureSetting
impl RefUnwindSafe for TextFontFeatureSetting
impl Send for TextFontFeatureSetting
impl Sync for TextFontFeatureSetting
impl Unpin for TextFontFeatureSetting
impl UnsafeUnpin for TextFontFeatureSetting
impl UnwindSafe for TextFontFeatureSetting
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