[−][src]Struct pix::Ch32
32-bit color Channel
The Channel
is represented by an f32
, but values are guaranteed to be
between 0 and 1, inclusive.
let c: Ch32 = 0.0.into(); assert_eq!(c, Ch32::MIN); let c: Ch8 = c.into(); assert_eq!(c, Ch8::MIN); let c: Ch32 = 1.0.into(); assert_eq!(c, Ch32::MAX); let c: Ch16 = c.into(); assert_eq!(c, Ch16::MAX);
Methods
impl Ch32
[src]
Trait Implementations
impl Channel for Ch32
[src]
const MIN: Ch32
[src]
Minimum intensity (zero)
const MAX: Ch32
[src]
Maximum intensity (one)
fn powf(self, g: f32) -> Self
[src]
Raise to given power
impl Clone for Ch32
[src]
impl Copy for Ch32
[src]
impl Debug for Ch32
[src]
impl Default for Ch32
[src]
impl Div<Ch32> for Ch32
[src]
type Output = Self
The resulting type after applying the /
operator.
fn div(self, rhs: Self) -> Self
[src]
impl Eq for Ch32
[src]
impl From<Ch16> for Ch32
[src]
impl From<Ch32> for f32
[src]
impl From<Ch32> for Ch8
[src]
impl From<Ch32> for Ch16
[src]
impl From<Ch8> for Ch32
[src]
impl<C: Channel> From<Opaque<C>> for Ch32
[src]
impl From<f32> for Ch32
[src]
impl Mul<Ch32> for Ch32
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, rhs: Self) -> Self
[src]
impl Ord for Ch32
[src]
fn cmp(&self, other: &Ch32) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<Ch32> for Ch32
[src]
impl PartialOrd<Ch32> for Ch32
[src]
fn partial_cmp(&self, other: &Ch32) -> Option<Ordering>
[src]
fn lt(&self, other: &Ch32) -> bool
[src]
fn le(&self, other: &Ch32) -> bool
[src]
fn gt(&self, other: &Ch32) -> bool
[src]
fn ge(&self, other: &Ch32) -> bool
[src]
impl StructuralPartialEq for Ch32
[src]
impl<R> Sub<R> for Ch32 where
Self: From<R>,
[src]
Self: From<R>,
Auto Trait Implementations
impl RefUnwindSafe for Ch32
impl Send for Ch32
impl Sync for Ch32
impl Unpin for Ch32
impl UnwindSafe for Ch32
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, 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>,