[][src]Enum obj::raw::material::MtlColor

pub enum MtlColor {
    Rgb(f32f32f32),
    Xyz(f32f32f32),
    Spectral(Stringf32),
}

A color specified in a .mtl file

Variants

Rgb(f32f32f32)

Color in the RGB color space

Xyz(f32f32f32)

Color in the CIEXYZ color space

Spectral(Stringf32)

Color using a spectral curve

The first argument is the name of a .rfl file specifying the curve. The second argument is a multiplier for the values in the .rfl file.

Trait Implementations

impl Clone for MtlColor[src]

impl Debug for MtlColor[src]

impl PartialEq<MtlColor> for MtlColor[src]

impl StructuralPartialEq for MtlColor[src]

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