pub struct ColorFunctionColor {
pub name: Function,
pub params: ColorFunctionColorParams,
pub close: RightParen,
}Expand description
https://drafts.csswg.org/css-color/#funcdef-color
color() = color( <colorspace-params> [ / [ <alpha-value> | none ] ]? )
<colorspace-params> = [ <predefined-rgb-params> | <xyz-params>]
<predefined-rgb-params> = <predefined-rgb> [ <number> | <percentage> | none ]{3}
<predefined-rgb> = srgb | srgb-linear | display-p3 | a98-rgb | prophoto-rgb | rec2020
<xyz-params> = <xyz-space> [ <number> | <percentage> | none ]{3}
<xyz-space> = xyz | xyz-d50 | xyz-d65Fields§
§name: Function§params: ColorFunctionColorParams§close: RightParenTrait Implementations§
Source§impl Clone for ColorFunctionColor
impl Clone for ColorFunctionColor
Source§fn clone(&self) -> ColorFunctionColor
fn clone(&self) -> ColorFunctionColor
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 ColorFunctionColor
impl Debug for ColorFunctionColor
Source§impl Hash for ColorFunctionColor
impl Hash for ColorFunctionColor
Source§impl Ord for ColorFunctionColor
impl Ord for ColorFunctionColor
Source§fn cmp(&self, other: &ColorFunctionColor) -> Ordering
fn cmp(&self, other: &ColorFunctionColor) -> 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 ColorFunctionColor
impl<'a> Parse<'a> for ColorFunctionColor
Source§impl PartialEq for ColorFunctionColor
impl PartialEq for ColorFunctionColor
Source§impl PartialOrd for ColorFunctionColor
impl PartialOrd for ColorFunctionColor
Source§impl<'a> Peek<'a> for ColorFunctionColor
impl<'a> Peek<'a> for ColorFunctionColor
Source§impl ToCursors for ColorFunctionColor
impl ToCursors for ColorFunctionColor
fn to_cursors(&self, s: &mut impl CursorSink)
impl Eq for ColorFunctionColor
impl StructuralPartialEq for ColorFunctionColor
Auto Trait Implementations§
impl Freeze for ColorFunctionColor
impl RefUnwindSafe for ColorFunctionColor
impl Send for ColorFunctionColor
impl Sync for ColorFunctionColor
impl Unpin for ColorFunctionColor
impl UnwindSafe for ColorFunctionColor
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