pub struct FontFeatureSettings(/* private fields */);Expand description
Compose’s fontFeatureSettings: a CSS font-feature-settings string,
such as smcp, liga 0, kept with the settings it parses to, so that a
layout reads them without parsing the string again. Two settings are
equal when their strings are.
Implementations§
Source§impl FontFeatureSettings
impl FontFeatureSettings
Sourcepub fn new(text: &str) -> Self
pub fn new(text: &str) -> Self
The settings text writes, parsed as font_feature_settings does.
Sourcepub fn features(&self) -> &[FontFeature]
pub fn features(&self) -> &[FontFeature]
The settings, in order, invalid entries skipped.
Trait Implementations§
Source§impl Clone for FontFeatureSettings
impl Clone for FontFeatureSettings
Source§impl Debug for FontFeatureSettings
impl Debug for FontFeatureSettings
impl Eq for FontFeatureSettings
Source§impl From<&str> for FontFeatureSettings
impl From<&str> for FontFeatureSettings
Source§impl From<String> for FontFeatureSettings
impl From<String> for FontFeatureSettings
Source§impl Hash for FontFeatureSettings
impl Hash for FontFeatureSettings
Auto Trait Implementations§
impl Forget for FontFeatureSettings
impl Freeze for FontFeatureSettings
impl Move for FontFeatureSettings
impl RefUnwindSafe for FontFeatureSettings
impl Send for FontFeatureSettings
impl Sync for FontFeatureSettings
impl Unpin for FontFeatureSettings
impl UnsafeUnpin for FontFeatureSettings
impl UnwindSafe for FontFeatureSettings
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