pub enum ThresholdType {
Binary,
BinaryInv,
Truncate,
ToZero,
ToZeroInv,
}Expand description
Point-wise threshold transformation.
Variants§
Binary
max_value above the threshold, zero otherwise.
BinaryInv
Zero above the threshold, max_value otherwise.
Truncate
Clamp values above the threshold to the threshold.
ToZero
Preserve values above the threshold, zero otherwise.
ToZeroInv
Zero values above the threshold, preserve the others.
Trait Implementations§
Source§impl Clone for ThresholdType
impl Clone for ThresholdType
Source§fn clone(&self) -> ThresholdType
fn clone(&self) -> ThresholdType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ThresholdType
impl Debug for ThresholdType
Source§impl Hash for ThresholdType
impl Hash for ThresholdType
Source§impl PartialEq for ThresholdType
impl PartialEq for ThresholdType
Source§fn eq(&self, other: &ThresholdType) -> bool
fn eq(&self, other: &ThresholdType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ThresholdType
impl Eq for ThresholdType
impl StructuralPartialEq for ThresholdType
Auto Trait Implementations§
impl Freeze for ThresholdType
impl RefUnwindSafe for ThresholdType
impl Send for ThresholdType
impl Sync for ThresholdType
impl Unpin for ThresholdType
impl UnsafeUnpin for ThresholdType
impl UnwindSafe for ThresholdType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more