[]Enum rsvg_internals::Color

pub enum Color {
    CurrentColor,
    RGBA(RGBA),
}

A value.

Variants

CurrentColor

The 'currentcolor' keyword

RGBA(RGBA)

Everything else gets converted to RGBA during parsing

Methods

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
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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
[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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>,