pub enum StyleColor {
None,
Palette(PaletteIndex),
Rgb(RgbColor),
}Expand description
A color used in a style attribute.
Variants§
Trait Implementations§
Source§impl Clone for StyleColor
impl Clone for StyleColor
Source§fn clone(&self) -> StyleColor
fn clone(&self) -> StyleColor
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 moreimpl Copy for StyleColor
Source§impl Debug for StyleColor
impl Debug for StyleColor
impl Eq for StyleColor
Source§impl From<StyleColor> for StyleColor
impl From<StyleColor> for StyleColor
Source§fn from(value: StyleColor) -> Self
fn from(value: StyleColor) -> Self
Converts to this type from the input type.
Source§impl PartialEq for StyleColor
impl PartialEq for StyleColor
Source§fn eq(&self, other: &StyleColor) -> bool
fn eq(&self, other: &StyleColor) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StyleColor
Source§impl TryFrom<StyleColor> for StyleColor
impl TryFrom<StyleColor> for StyleColor
Auto Trait Implementations§
impl Freeze for StyleColor
impl RefUnwindSafe for StyleColor
impl Send for StyleColor
impl Sync for StyleColor
impl Unpin for StyleColor
impl UnsafeUnpin for StyleColor
impl UnwindSafe for StyleColor
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