Struct color::Rg[][src]

pub struct Rg<T = u8, S = Srgb> {
    pub r: T,
    pub g: T,
    pub standard: PhantomData<S>,
}

Fields

r: Tg: Tstandard: PhantomData<S>

Implementations

impl<T, S> Rg<T, S>[src]

pub const fn new(r: T, g: T) -> Rg<T, S>[src]

Trait Implementations

impl<T: Clone, S> Clone for Rg<T, S>[src]

impl<T: Debug, S: Default + Debug> Debug for Rg<T, S>[src]

impl<'de, T, S> Deserialize<'de> for Rg<T, S> where
    T: Deserialize<'de>, 
[src]

impl<N: Clone + PartialEq + Num + NumCast, S> PartialEq<Rg<N, S>> for Rg<N, S>[src]

impl<T, S> Serialize for Rg<T, S> where
    T: Serialize
[src]

impl<T: Copy, S> Copy for Rg<T, S>[src]

impl<N: Clone + PartialEq + Eq + Num + NumCast, S> Eq for Rg<N, S>[src]

Auto Trait Implementations

impl<T, S> RefUnwindSafe for Rg<T, S> where
    S: RefUnwindSafe,
    T: RefUnwindSafe

impl<T, S> Send for Rg<T, S> where
    S: Send,
    T: Send

impl<T, S> Sync for Rg<T, S> where
    S: Sync,
    T: Sync

impl<T, S> Unpin for Rg<T, S> where
    S: Unpin,
    T: Unpin

impl<T, S> UnwindSafe for Rg<T, S> where
    S: UnwindSafe,
    T: UnwindSafe

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