[][src]Struct colorspace::rgb::RGBf

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

Floating-point RGB type

Fields

r: Tg: Tb: T

Implementations

impl<T> RGBf<T> where
    T: Real
[src]

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

pub fn from_scalar(s: T) -> RGBf<T>[src]

pub fn powf(&self, x: T) -> RGBf<T>[src]

pub fn abs(&self) -> RGBf<T>[src]

pub fn cast_slice(slice: &[T]) -> &[RGBf<T>][src]

Trait Implementations

impl<T> Add<RGBf<T>> for RGBf<T> where
    T: Scalar
[src]

Addition operator

type Output = RGBf<T>

The resulting type after applying the + operator.

impl Add<RGBf<f32>> for f32[src]

type Output = RGBf<f32>

The resulting type after applying the + operator.

impl<T> Add<T> for RGBf<T> where
    T: Scalar
[src]

Addition by a T

type Output = RGBf<T>

The resulting type after applying the + operator.

impl<T> AddAssign<RGBf<T>> for RGBf<T> where
    T: Scalar
[src]

Addition operator

impl<T> Bounded for RGBf<T> where
    T: Scalar
[src]

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

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

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

impl<T: Default> Default for RGBf<T>[src]

impl<T> Display for RGBf<T> where
    T: Scalar + Display
[src]

impl<T> Div<RGBf<T>> for RGBf<T> where
    T: Scalar
[src]

Division operator

type Output = RGBf<T>

The resulting type after applying the / operator.

impl Div<RGBf<f32>> for f32[src]

type Output = RGBf<f32>

The resulting type after applying the / operator.

impl<T> Div<T> for RGBf<T> where
    T: Scalar
[src]

Division by a T

type Output = RGBf<T>

The resulting type after applying the / operator.

impl<T: Eq> Eq for RGBf<T>[src]

impl From<RGBf<f32>> for RGBu8[src]

impl From<RGBf<f32>> for RGBu16[src]

impl From<RGBf<f64>> for RGBf32[src]

impl From<RGBf<f64>> for RGBu8[src]

impl From<RGBf<f64>> for RGBu16[src]

impl<T> Index<usize> for RGBf<T> where
    T: Scalar
[src]

type Output = T

The returned type after indexing.

impl<T> IndexMut<usize> for RGBf<T> where
    T: Scalar
[src]

impl<T> Mul<RGBf<T>> for RGBf<T> where
    T: Scalar
[src]

Multiplication operator

type Output = RGBf<T>

The resulting type after applying the * operator.

impl<T> Mul<RGBf<T>> for Matrix33<T> where
    T: Real
[src]

type Output = RGBf<T>

The resulting type after applying the * operator.

impl Mul<RGBf<f32>> for f32[src]

type Output = RGBf<f32>

The resulting type after applying the * operator.

impl<T> Mul<T> for RGBf<T> where
    T: Scalar
[src]

Multiplication by a T

type Output = RGBf<T>

The resulting type after applying the * operator.

impl<T> Neg for RGBf<T> where
    T: Scalar
[src]

Unary negation

type Output = RGBf<T>

The resulting type after applying the - operator.

impl<T> One for RGBf<T> where
    T: Real
[src]

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

impl<T: PartialOrd> PartialOrd<RGBf<T>> for RGBf<T>[src]

impl<T> StructuralEq for RGBf<T>[src]

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

impl<T> Sub<RGBf<T>> for RGBf<T> where
    T: Scalar
[src]

Subtraction operator

type Output = RGBf<T>

The resulting type after applying the - operator.

impl Sub<RGBf<f32>> for f32[src]

type Output = RGBf<f32>

The resulting type after applying the - operator.

impl<T> Sub<T> for RGBf<T> where
    T: Scalar
[src]

Subtraction by a T

type Output = RGBf<T>

The resulting type after applying the - operator.

impl Sum<RGBf<f32>> for RGBf32[src]

impl Sum<RGBf<f64>> for RGBf64[src]

impl<T> Zero for RGBf<T> where
    T: Real
[src]

Auto Trait Implementations

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

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

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

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

impl<T> UnwindSafe for RGBf<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> ToString for T where
    T: Display + ?Sized
[src]

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<V, T> VZip<V> for T where
    V: MultiLane<T>,