[][src]Struct smithay_client_toolkit::window::ARGBColor

pub struct ARGBColor {
    pub a: u8,
    pub r: u8,
    pub g: u8,
    pub b: u8,
}

Unambiguous representation of an ARGB color

Fields

a: u8

Alpha channel

r: u8

Red channel

g: u8

Green channel

b: u8

Blue channel

Implementations

impl ARGBColor[src]

pub const fn zero() -> ARGBColor[src]

The invisible #00000000 color

Trait Implementations

impl Clone for ARGBColor[src]

impl Copy for ARGBColor[src]

impl Debug for ARGBColor[src]

impl Eq for ARGBColor[src]

impl From<[u8; 4]> for ARGBColor[src]

impl From<ARGBColor> for [u8; 4][src]

impl PartialEq<ARGBColor> for ARGBColor[src]

impl StructuralEq for ARGBColor[src]

impl StructuralPartialEq for ARGBColor[src]

Auto Trait Implementations

impl RefUnwindSafe for ARGBColor

impl Send for ARGBColor

impl Sync for ARGBColor

impl Unpin for ARGBColor

impl UnwindSafe for ARGBColor

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