[−][src]Struct prisma::channel::bounded_channel::NormalBoundedChannel
A channel bounded between a minimum and a maximum value
Trait Implementations
impl<T> AbsDiffEq<NormalBoundedChannel<T>> for NormalBoundedChannel<T> where
T: NormalChannelScalar + AbsDiffEq,
[src]
T: NormalChannelScalar + AbsDiffEq,
type Epsilon = T::Epsilon
Used for specifying relative comparisons.
fn default_epsilon() -> Self::Epsilon
[src]
fn abs_diff_eq(&self, other: &Self, epsilon: Self::Epsilon) -> bool
[src]
fn abs_diff_ne(&self, other: &Rhs, epsilon: Self::Epsilon) -> bool
[src]
impl<T> Bounded for NormalBoundedChannel<T> where
T: NormalChannelScalar,
[src]
T: NormalChannelScalar,
fn normalize(self) -> Self
[src]
fn is_normalized(&self) -> bool
[src]
impl<T> ChannelCast for NormalBoundedChannel<T> where
T: NormalChannelScalar,
[src]
T: NormalChannelScalar,
fn channel_cast<To>(self) -> To where
Self::Format: ChannelFormatCast<To::Format>,
To: ColorChannel<Tag = Self::Tag>,
[src]
Self::Format: ChannelFormatCast<To::Format>,
To: ColorChannel<Tag = Self::Tag>,
fn scalar_cast<To>(self) -> To where
Self::Format: ChannelFormatCast<To>,
[src]
Self::Format: ChannelFormatCast<To>,
impl<T: Clone> Clone for NormalBoundedChannel<T>
[src]
fn clone(&self) -> NormalBoundedChannel<T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T> ColorChannel for NormalBoundedChannel<T> where
T: NormalChannelScalar,
[src]
T: NormalChannelScalar,
type Format = T
The contained type representing the channel. Format can be a wrapper around a scalar, such as an Angle<f32>
, or a scalar itself. Read more
type Scalar = T
The scalar type used by the channel. This will be the scalar inside of a wrapper type.
type Tag = NormalChannelTag
A unique identifying tag type used in generic contexts
fn min_bound() -> T
[src]
fn max_bound() -> T
[src]
fn value(&self) -> T
[src]
fn clamp(&self, min: T, max: T) -> Self
[src]
fn scalar(&self) -> T
[src]
fn from_scalar(value: T) -> Self
[src]
fn new(value: T) -> Self
[src]
impl<T: Copy> Copy for NormalBoundedChannel<T>
[src]
impl<T: Debug> Debug for NormalBoundedChannel<T>
[src]
impl<T> Default for NormalBoundedChannel<T> where
T: NormalChannelScalar + Zero,
[src]
T: NormalChannelScalar + Zero,
impl<T> Display for NormalBoundedChannel<T> where
T: NormalChannelScalar + Display,
[src]
T: NormalChannelScalar + Display,
impl<T: Eq> Eq for NormalBoundedChannel<T>
[src]
impl<T: Hash> Hash for NormalBoundedChannel<T>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<T> Invert for NormalBoundedChannel<T> where
T: NormalChannelScalar,
[src]
T: NormalChannelScalar,
impl<T> Lerp for NormalBoundedChannel<T> where
T: NormalChannelScalar + Lerp,
[src]
T: NormalChannelScalar + Lerp,
type Position = <T as Lerp>::Position
The type of the pos
argument
fn lerp(&self, right: &Self, pos: Self::Position) -> Self
[src]
impl<T: Ord> Ord for NormalBoundedChannel<T>
[src]
fn cmp(&self, other: &NormalBoundedChannel<T>) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<T: PartialEq> PartialEq<NormalBoundedChannel<T>> for NormalBoundedChannel<T>
[src]
fn eq(&self, other: &NormalBoundedChannel<T>) -> bool
[src]
fn ne(&self, other: &NormalBoundedChannel<T>) -> bool
[src]
impl<T: PartialOrd> PartialOrd<NormalBoundedChannel<T>> for NormalBoundedChannel<T>
[src]
fn partial_cmp(&self, other: &NormalBoundedChannel<T>) -> Option<Ordering>
[src]
fn lt(&self, other: &NormalBoundedChannel<T>) -> bool
[src]
fn le(&self, other: &NormalBoundedChannel<T>) -> bool
[src]
fn gt(&self, other: &NormalBoundedChannel<T>) -> bool
[src]
fn ge(&self, other: &NormalBoundedChannel<T>) -> bool
[src]
impl<T> RelativeEq<NormalBoundedChannel<T>> for NormalBoundedChannel<T> where
T: NormalChannelScalar + RelativeEq,
[src]
T: NormalChannelScalar + RelativeEq,
fn default_max_relative() -> Self::Epsilon
[src]
fn relative_eq(
&self,
other: &Self,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon
) -> bool
[src]
&self,
other: &Self,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon
) -> bool
fn relative_ne(
&self,
other: &Rhs,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon
) -> bool
[src]
&self,
other: &Rhs,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon
) -> bool
impl<T> StructuralEq for NormalBoundedChannel<T>
[src]
impl<T> StructuralPartialEq for NormalBoundedChannel<T>
[src]
impl<T> UlpsEq<NormalBoundedChannel<T>> for NormalBoundedChannel<T> where
T: NormalChannelScalar + UlpsEq,
[src]
T: NormalChannelScalar + UlpsEq,
Auto Trait Implementations
impl<T> RefUnwindSafe for NormalBoundedChannel<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for NormalBoundedChannel<T> where
T: Send,
T: Send,
impl<T> Sync for NormalBoundedChannel<T> where
T: Sync,
T: Sync,
impl<T> Unpin for NormalBoundedChannel<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for NormalBoundedChannel<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>,