[][src]Struct msdfgen::RGB

#[repr(C)]
pub struct RGB<T> {
    pub r: T,
    pub g: T,
    pub b: T,
}

RGB color

Fields

r: Tg: Tb: T

Methods

impl<T> RGB<T>[src]

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

Trait Implementations

impl<T: Clone> Clone for RGB<T>[src]

impl<T: Copy> Copy for RGB<T>[src]

impl<T: Debug> Debug for RGB<T>[src]

impl ErrorEstimation for RGB<f32>[src]

impl From<RGB<f32>> for RGB<u8>[src]

impl From<RGB<u8>> for RGB<f32>[src]

impl<T: PartialEq> PartialEq<RGB<T>> for RGB<T>[src]

impl Pixel for RGB<f32>[src]

type Component = f32

impl Pixel for RGB<u8>[src]

type Component = u8

impl RenderTarget<Gray<f32>> for RGB<f32>[src]

impl RenderTarget<RGB<f32>> for Gray<f32>[src]

impl RenderTarget<RGB<f32>> for RGB<f32>[src]

impl SignCorrection for RGB<f32>[src]

impl<T> StructuralPartialEq for RGB<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for RGB<T> where
    T: RefUnwindSafe

impl<T> Send for RGB<T> where
    T: Send

impl<T> Sync for RGB<T> where
    T: Sync

impl<T> Unpin for RGB<T> where
    T: Unpin

impl<T> UnwindSafe for RGB<T> where
    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<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.