[−][src]Struct colorspace::rgb::RGBf
Floating-point RGB type
Fields
r: T
g: T
b: T
Implementations
impl<T> RGBf<T> where
T: Real,
[src]
T: Real,
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]
T: Scalar,
Addition operator
type Output = RGBf<T>
The resulting type after applying the +
operator.
fn add(self, rhs: RGBf<T>) -> RGBf<T>
[src]
impl Add<RGBf<f32>> for f32
[src]
type Output = RGBf<f32>
The resulting type after applying the +
operator.
fn add(self, rhs: RGBf<f32>) -> RGBf<f32>
[src]
impl<T> Add<T> for RGBf<T> where
T: Scalar,
[src]
T: Scalar,
Addition by a T
type Output = RGBf<T>
The resulting type after applying the +
operator.
fn add(self, rhs: T) -> RGBf<T>
[src]
impl<T> AddAssign<RGBf<T>> for RGBf<T> where
T: Scalar,
[src]
T: Scalar,
Addition operator
fn add_assign(&mut self, rhs: RGBf<T>)
[src]
impl<T> Bounded for RGBf<T> where
T: Scalar,
[src]
T: Scalar,
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]
T: Scalar + Display,
impl<T> Div<RGBf<T>> for RGBf<T> where
T: Scalar,
[src]
T: Scalar,
Division operator
type Output = RGBf<T>
The resulting type after applying the /
operator.
fn div(self, rhs: RGBf<T>) -> RGBf<T>
[src]
impl Div<RGBf<f32>> for f32
[src]
type Output = RGBf<f32>
The resulting type after applying the /
operator.
fn div(self, rhs: RGBf<f32>) -> RGBf<f32>
[src]
impl<T> Div<T> for RGBf<T> where
T: Scalar,
[src]
T: Scalar,
Division by a T
type Output = RGBf<T>
The resulting type after applying the /
operator.
fn div(self, rhs: T) -> RGBf<T>
[src]
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]
T: Scalar,
impl<T> IndexMut<usize> for RGBf<T> where
T: Scalar,
[src]
T: Scalar,
impl<T> Mul<RGBf<T>> for RGBf<T> where
T: Scalar,
[src]
T: Scalar,
Multiplication operator
type Output = RGBf<T>
The resulting type after applying the *
operator.
fn mul(self, rhs: RGBf<T>) -> RGBf<T>
[src]
impl<T> Mul<RGBf<T>> for Matrix33<T> where
T: Real,
[src]
T: Real,
type Output = RGBf<T>
The resulting type after applying the *
operator.
fn mul(self, rgb: RGBf<T>) -> RGBf<T>
[src]
impl Mul<RGBf<f32>> for f32
[src]
type Output = RGBf<f32>
The resulting type after applying the *
operator.
fn mul(self, rhs: RGBf<f32>) -> RGBf<f32>
[src]
impl<T> Mul<T> for RGBf<T> where
T: Scalar,
[src]
T: Scalar,
Multiplication by a T
type Output = RGBf<T>
The resulting type after applying the *
operator.
fn mul(self, rhs: T) -> RGBf<T>
[src]
impl<T> Neg for RGBf<T> where
T: Scalar,
[src]
T: Scalar,
Unary negation
impl<T> One for RGBf<T> where
T: Real,
[src]
T: Real,
fn one() -> RGBf<T> where
T: Real,
[src]
T: Real,
fn set_one(&mut self)
[src]
fn is_one(&self) -> bool where
Self: PartialEq<Self>,
[src]
Self: PartialEq<Self>,
impl<T: PartialEq> PartialEq<RGBf<T>> for RGBf<T>
[src]
impl<T: PartialOrd> PartialOrd<RGBf<T>> for RGBf<T>
[src]
fn partial_cmp(&self, other: &RGBf<T>) -> Option<Ordering>
[src]
fn lt(&self, other: &RGBf<T>) -> bool
[src]
fn le(&self, other: &RGBf<T>) -> bool
[src]
fn gt(&self, other: &RGBf<T>) -> bool
[src]
fn ge(&self, other: &RGBf<T>) -> bool
[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]
T: Scalar,
Subtraction operator
type Output = RGBf<T>
The resulting type after applying the -
operator.
fn sub(self, rhs: RGBf<T>) -> RGBf<T>
[src]
impl Sub<RGBf<f32>> for f32
[src]
type Output = RGBf<f32>
The resulting type after applying the -
operator.
fn sub(self, rhs: RGBf<f32>) -> RGBf<f32>
[src]
impl<T> Sub<T> for RGBf<T> where
T: Scalar,
[src]
T: Scalar,
Subtraction by a T
type Output = RGBf<T>
The resulting type after applying the -
operator.
fn sub(self, rhs: T) -> RGBf<T>
[src]
impl Sum<RGBf<f32>> for RGBf32
[src]
impl Sum<RGBf<f64>> for RGBf64
[src]
impl<T> Zero for RGBf<T> where
T: Real,
[src]
T: Real,
Auto Trait Implementations
impl<T> RefUnwindSafe for RGBf<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for RGBf<T> where
T: Send,
T: Send,
impl<T> Sync for RGBf<T> where
T: Sync,
T: Sync,
impl<T> Unpin for RGBf<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for RGBf<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,