Struct libpolymesh::common::transform::PolyColor[][src]

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

Simple, JSON-Serializable color

Fields

r: u8g: u8b: u8a: u8

Implementations

impl PolyColor[src]

pub fn black() -> Self[src]

pub fn white() -> Self[src]

pub fn red() -> Self[src]

pub fn green() -> Self[src]

pub fn blue() -> Self[src]

pub fn clear() -> Self[src]

Trait Implementations

impl Add<PolyColor> for PolyColor[src]

type Output = PolyColor

The resulting type after applying the + operator.

impl Clone for PolyColor[src]

impl Copy for PolyColor[src]

impl Debug for PolyColor[src]

impl<'de> Deserialize<'de> for PolyColor[src]

impl<__RhsT: Copy> Div<__RhsT> for PolyColor where
    u8: Div<__RhsT, Output = u8>, 
[src]

type Output = PolyColor

The resulting type after applying the / operator.

impl<__RhsT: Copy> Mul<__RhsT> for PolyColor where
    u8: Mul<__RhsT, Output = u8>, 
[src]

type Output = PolyColor

The resulting type after applying the * operator.

impl PartialEq<PolyColor> for PolyColor[src]

impl PartialOrd<PolyColor> for PolyColor[src]

impl Serialize for PolyColor[src]

impl StructuralPartialEq for PolyColor[src]

impl Sub<PolyColor> for PolyColor[src]

type Output = PolyColor

The resulting type after applying the - operator.

Auto Trait Implementations

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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.