pub enum FontFeatures<'a> {
Source(Cow<'a, str>),
List(Cow<'a, [FontFeature]>),
}Expand description
Font feature settings that can be supplied as a raw source string or a parsed slice.
Variants§
Implementations§
Source§impl<'a> FontFeatures<'a>
impl<'a> FontFeatures<'a>
Trait Implementations§
Source§impl<'a> Clone for FontFeatures<'a>
impl<'a> Clone for FontFeatures<'a>
Source§fn clone(&self) -> FontFeatures<'a>
fn clone(&self) -> FontFeatures<'a>
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<'a> Debug for FontFeatures<'a>
impl<'a> Debug for FontFeatures<'a>
Source§impl<'a> From<&'a [FontFeature]> for FontFeatures<'a>
impl<'a> From<&'a [FontFeature]> for FontFeatures<'a>
Source§fn from(value: &'a [FontFeature]) -> Self
fn from(value: &'a [FontFeature]) -> Self
Converts to this type from the input type.
Source§impl<'a, const N: usize> From<&'a [FontFeature; N]> for FontFeatures<'a>
impl<'a, const N: usize> From<&'a [FontFeature; N]> for FontFeatures<'a>
Source§fn from(value: &'a [FontFeature; N]) -> Self
fn from(value: &'a [FontFeature; N]) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a str> for FontFeatures<'a>
impl<'a> From<&'a str> for FontFeatures<'a>
Source§impl<'a, B: Brush> From<FontFeatures<'a>> for StyleProperty<'a, B>
impl<'a, B: Brush> From<FontFeatures<'a>> for StyleProperty<'a, B>
Source§fn from(value: FontFeatures<'a>) -> Self
fn from(value: FontFeatures<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> PartialEq for FontFeatures<'a>
impl<'a> PartialEq for FontFeatures<'a>
impl<'a> StructuralPartialEq for FontFeatures<'a>
Auto Trait Implementations§
impl<'a> Freeze for FontFeatures<'a>
impl<'a> RefUnwindSafe for FontFeatures<'a>
impl<'a> Send for FontFeatures<'a>
impl<'a> Sync for FontFeatures<'a>
impl<'a> Unpin for FontFeatures<'a>
impl<'a> UnsafeUnpin for FontFeatures<'a>
impl<'a> UnwindSafe for FontFeatures<'a>
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