pub enum FontPaletteValuesProperty<'i> {
FontFamily(FontFamily<'i>),
BasePalette(BasePalette),
OverrideColors(Vec<OverrideColors>),
Custom(CustomProperty<'i>),
}
Expand description
A property within an @font-palette-values
rule.
Variants
FontFamily(FontFamily<'i>)
The font-family
property.
BasePalette(BasePalette)
The base-palette
property.
OverrideColors(Vec<OverrideColors>)
The override-colors
property.
Custom(CustomProperty<'i>)
An unknown or unsupported property.
Trait Implementations
sourceimpl<'i> Clone for FontPaletteValuesProperty<'i>
impl<'i> Clone for FontPaletteValuesProperty<'i>
sourcefn clone(&self) -> FontPaletteValuesProperty<'i>
fn clone(&self) -> FontPaletteValuesProperty<'i>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'i> Debug for FontPaletteValuesProperty<'i>
impl<'i> Debug for FontPaletteValuesProperty<'i>
sourceimpl<'i> PartialEq<FontPaletteValuesProperty<'i>> for FontPaletteValuesProperty<'i>
impl<'i> PartialEq<FontPaletteValuesProperty<'i>> for FontPaletteValuesProperty<'i>
sourcefn eq(&self, other: &FontPaletteValuesProperty<'i>) -> bool
fn eq(&self, other: &FontPaletteValuesProperty<'i>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &FontPaletteValuesProperty<'i>) -> bool
fn ne(&self, other: &FontPaletteValuesProperty<'i>) -> bool
This method tests for !=
.
sourceimpl<'i> ToCss for FontPaletteValuesProperty<'i>
impl<'i> ToCss for FontPaletteValuesProperty<'i>
sourcefn to_css<W>(&self, dest: &mut Printer<'_, W>) -> Result<(), PrinterError> where
W: Write,
fn to_css<W>(&self, dest: &mut Printer<'_, W>) -> Result<(), PrinterError> where
W: Write,
Serialize self
in CSS syntax, writing to dest
.
sourcefn to_css_string(
&self,
options: PrinterOptions<'_>
) -> Result<String, PrinterError>
fn to_css_string(
&self,
options: PrinterOptions<'_>
) -> Result<String, PrinterError>
Serialize self
in CSS syntax and return a string. Read more
impl<'i> StructuralPartialEq for FontPaletteValuesProperty<'i>
Auto Trait Implementations
impl<'i> RefUnwindSafe for FontPaletteValuesProperty<'i>
impl<'i> Send for FontPaletteValuesProperty<'i>
impl<'i> Sync for FontPaletteValuesProperty<'i>
impl<'i> Unpin for FontPaletteValuesProperty<'i>
impl<'i> UnwindSafe for FontPaletteValuesProperty<'i>
Blanket Implementations
impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more