Struct rasterize::ColorU8[][src]

pub struct ColorU8(_);

ABGR color packed as u32 value (most of the platforms are little-endian)

Implementations

impl ColorU8[src]

pub const fn new(r: u8, g: u8, b: u8, a: u8) -> Self[src]

pub const fn alpha(self) -> u8[src]

pub const fn blue(self) -> u8[src]

pub const fn green(self) -> u8[src]

pub const fn red(self) -> u8[src]

Trait Implementations

impl Clone for ColorU8[src]

impl Color for ColorU8[src]

impl Copy for ColorU8[src]

impl Debug for ColorU8[src]

impl Default for ColorU8[src]

impl Eq for ColorU8[src]

impl From<ColorU8> for LinColor[src]

impl From<LinColor> for ColorU8[src]

impl FromStr for ColorU8[src]

type Err = ColorError

The associated error which can be returned from parsing.

impl Hash for ColorU8[src]

impl PartialEq<ColorU8> for ColorU8[src]

impl StructuralEq for ColorU8[src]

impl StructuralPartialEq for ColorU8[src]

Auto Trait Implementations

impl RefUnwindSafe for ColorU8

impl Send for ColorU8

impl Sync for ColorU8

impl Unpin for ColorU8

impl UnwindSafe for ColorU8

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.