pub struct ColorStyleValue(pub Color);Expand description
Represents the style value for color as defined in css-color-6.
The color CSS property sets the primary foreground color of an element, which is used for text, the default border color, and text decorations.
The grammar is defined as:
<color>Tuple Fields§
§0: ColorTrait Implementations§
Source§impl Clone for ColorStyleValue
impl Clone for ColorStyleValue
Source§fn clone(&self) -> ColorStyleValue
fn clone(&self) -> ColorStyleValue
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 Debug for ColorStyleValue
impl Debug for ColorStyleValue
Source§impl Hash for ColorStyleValue
impl Hash for ColorStyleValue
Source§impl Ord for ColorStyleValue
impl Ord for ColorStyleValue
Source§fn cmp(&self, other: &ColorStyleValue) -> Ordering
fn cmp(&self, other: &ColorStyleValue) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a> Parse<'a> for ColorStyleValue
impl<'a> Parse<'a> for ColorStyleValue
Source§impl PartialEq for ColorStyleValue
impl PartialEq for ColorStyleValue
Source§impl PartialOrd for ColorStyleValue
impl PartialOrd for ColorStyleValue
Source§impl<'a> Peek<'a> for ColorStyleValue
impl<'a> Peek<'a> for ColorStyleValue
Source§impl ToCursors for ColorStyleValue
impl ToCursors for ColorStyleValue
fn to_cursors(&self, s: &mut impl CursorSink)
impl Eq for ColorStyleValue
impl StructuralPartialEq for ColorStyleValue
Auto Trait Implementations§
impl Freeze for ColorStyleValue
impl RefUnwindSafe for ColorStyleValue
impl Send for ColorStyleValue
impl Sync for ColorStyleValue
impl Unpin for ColorStyleValue
impl UnwindSafe for ColorStyleValue
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