pub struct FontFeatureValuesDeclaration<T: ToCss> {
pub name: Atom,
pub value: T,
}
Expand description
A @font-feature-values block declaration.
It is <ident>: <integer>+
.
This struct can take 3 value types.
SingleValue
is to keep just one unsigned integer value.PairValues
is to keep one or two unsigned integer values.VectorValues
is to keep a list of unsigned integer values.
Fields§
§name: Atom
An <ident>
for declaration name.
value: T
An <integer>+
for declaration value.
Trait Implementations§
Source§impl<T: Clone + ToCss> Clone for FontFeatureValuesDeclaration<T>
impl<T: Clone + ToCss> Clone for FontFeatureValuesDeclaration<T>
Source§fn clone(&self) -> FontFeatureValuesDeclaration<T>
fn clone(&self) -> FontFeatureValuesDeclaration<T>
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<T: PartialEq + ToCss> PartialEq for FontFeatureValuesDeclaration<T>
impl<T: PartialEq + ToCss> PartialEq for FontFeatureValuesDeclaration<T>
Source§fn eq(&self, other: &FontFeatureValuesDeclaration<T>) -> bool
fn eq(&self, other: &FontFeatureValuesDeclaration<T>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl<T: ToCss> ToCss for FontFeatureValuesDeclaration<T>
impl<T: ToCss> ToCss for FontFeatureValuesDeclaration<T>
impl<T: ToCss> StructuralPartialEq for FontFeatureValuesDeclaration<T>
Auto Trait Implementations§
impl<T> Freeze for FontFeatureValuesDeclaration<T>where
T: Freeze,
impl<T> RefUnwindSafe for FontFeatureValuesDeclaration<T>where
T: RefUnwindSafe,
impl<T> Send for FontFeatureValuesDeclaration<T>where
T: Send,
impl<T> Sync for FontFeatureValuesDeclaration<T>where
T: Sync,
impl<T> Unpin for FontFeatureValuesDeclaration<T>where
T: Unpin,
impl<T> UnwindSafe for FontFeatureValuesDeclaration<T>where
T: UnwindSafe,
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