pub enum ThresholdMode {
Above,
Below,
Equal,
}Expand description
Threshold mode
Variants§
Above
Output 1 if above, 0 if below
Below
Output 1 if below, 0 if above
Equal
Output 1 if equal (within tolerance)
Trait Implementations§
Source§impl Clone for ThresholdMode
impl Clone for ThresholdMode
Source§fn clone(&self) -> ThresholdMode
fn clone(&self) -> ThresholdMode
Returns a duplicate of the value. Read more
1.0.0 · 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 ThresholdMode
impl Debug for ThresholdMode
Source§impl<'de> Deserialize<'de> for ThresholdMode
impl<'de> Deserialize<'de> for ThresholdMode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ThresholdMode
impl Serialize for ThresholdMode
impl Copy for ThresholdMode
Auto Trait Implementations§
impl Freeze for ThresholdMode
impl RefUnwindSafe for ThresholdMode
impl Send for ThresholdMode
impl Sync for ThresholdMode
impl Unpin for ThresholdMode
impl UnsafeUnpin for ThresholdMode
impl UnwindSafe for ThresholdMode
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