[][src]Struct css_color::Rgba

pub struct Rgba {
    pub red: f32,
    pub green: f32,
    pub blue: f32,
    pub alpha: f32,
}

A color with RGBA components, represented as floats.

Fields

red: f32

The red component.

green: f32

The green component.

blue: f32

The blue component.

alpha: f32

The alpha component.

Methods

impl Rgba
[src]

pub fn new(red: f32, green: f32, blue: f32, alpha: f32) -> Rgba
[src]

Trait Implementations

impl Copy for Rgba
[src]

impl PartialEq<Rgba> for Rgba
[src]

impl Clone for Rgba
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Rgba
[src]

impl FromStr for Rgba
[src]

type Err = ParseColorError

The associated error which can be returned from parsing.

Auto Trait Implementations

impl Send for Rgba

impl Sync for Rgba

Blanket Implementations

impl<T> From for T
[src]

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

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

type Owned = T

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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