[]Enum rsvg_internals::color::Color

pub enum Color {

A value.



The 'currentcolor' keyword


Everything else gets converted to RGBA during parsing


impl Color

pub fn parse_with<'i, ComponentParser>(
    component_parser: &ComponentParser,
    input: &mut Parser<'i, 't>
) -> Result<Color, ParseError<'i, <ComponentParser as ColorComponentParser<'i>>::Error>> where
    ComponentParser: ColorComponentParser<'i>, 

Parse a value, per CSS Color Module Level 3.

FIXME(#2) Deprecated CSS2 System Colors are not supported yet.

pub fn parse(input: &mut Parser<'i, 't>) -> Result<Color, BasicParseError<'i>>

Parse a value, per CSS Color Module Level 3.

pub fn parse_hash(value: &[u8]) -> Result<Color, ()>

Parse a color hash, without the leading '#' character.

Trait Implementations

impl Clone for Color

impl Copy for Color

impl Debug for Color

impl Parse for Color[src]

impl PartialEq<Color> for Color

impl StructuralPartialEq for Color

impl ToCss for Color

Auto Trait Implementations

impl RefUnwindSafe for Color

impl Send for Color

impl Sync for Color

impl Unpin for Color

impl UnwindSafe for Color

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Scalar for T where
    T: PartialEq<T> + Copy + Any + Debug

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,