pub struct RgbFunction {
pub name: Function,
pub params: RgbFunctionParams,
pub close: RightParen,
}Expand description
https://drafts.csswg.org/css-color/#funcdef-rgb
rgb() = [ <legacy-rgb-syntax> | <modern-rgb-syntax> ]
rgba() = [ <legacy-rgba-syntax> | <modern-rgba-syntax> ]
<legacy-rgb-syntax> = rgb( <percentage>#{3} , <alpha-value>? ) |
rgb( <number>#{3} , <alpha-value>? )
<legacy-rgba-syntax> = rgba( <percentage>#{3} , <alpha-value>? ) |
rgba( <number>#{3} , <alpha-value>? )
<modern-rgb-syntax> = rgb(
[ <number> | <percentage> | none]{3}
[ / [<alpha-value> | none] ]? )
<modern-rgba-syntax> = rgba(
[ <number> | <percentage> | none]{3}
[ / [<alpha-value> | none] ]? )Fields§
§name: Function§params: RgbFunctionParams§close: RightParenTrait Implementations§
Source§impl Clone for RgbFunction
impl Clone for RgbFunction
Source§fn clone(&self) -> RgbFunction
fn clone(&self) -> RgbFunction
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 RgbFunction
impl Debug for RgbFunction
Source§impl Hash for RgbFunction
impl Hash for RgbFunction
Source§impl Ord for RgbFunction
impl Ord for RgbFunction
Source§fn cmp(&self, other: &RgbFunction) -> Ordering
fn cmp(&self, other: &RgbFunction) -> 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 RgbFunction
impl<'a> Parse<'a> for RgbFunction
Source§impl PartialEq for RgbFunction
impl PartialEq for RgbFunction
Source§impl PartialOrd for RgbFunction
impl PartialOrd for RgbFunction
Source§impl<'a> Peek<'a> for RgbFunction
impl<'a> Peek<'a> for RgbFunction
Source§impl ToCursors for RgbFunction
impl ToCursors for RgbFunction
fn to_cursors(&self, s: &mut impl CursorSink)
impl Eq for RgbFunction
impl StructuralPartialEq for RgbFunction
Auto Trait Implementations§
impl Freeze for RgbFunction
impl RefUnwindSafe for RgbFunction
impl Send for RgbFunction
impl Sync for RgbFunction
impl Unpin for RgbFunction
impl UnwindSafe for RgbFunction
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