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) -> FontFeatureSettings
pub fn new(text: &str) -> FontFeatureSettings
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§fn clone(&self) -> FontFeatureSettings
fn clone(&self) -> FontFeatureSettings
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 moreSource§impl Debug for FontFeatureSettings
impl Debug for FontFeatureSettings
impl Eq for FontFeatureSettings
Source§impl From<&str> for FontFeatureSettings
impl From<&str> for FontFeatureSettings
Source§fn from(text: &str) -> FontFeatureSettings
fn from(text: &str) -> FontFeatureSettings
Converts to this type from the input type.
Source§impl From<String> for FontFeatureSettings
impl From<String> for FontFeatureSettings
Source§fn from(text: String) -> FontFeatureSettings
fn from(text: String) -> FontFeatureSettings
Converts to this type from the input type.
Source§impl Hash for FontFeatureSettings
impl Hash for FontFeatureSettings
Auto Trait Implementations§
impl Forget for FontFeatureSettings
impl Freeze 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more