pub enum TernaryValue {
Negative = -1,
Neutral = 0,
Positive = 1,
}Expand description
A ternary value: negative, neutral, or positive.
Variants§
Implementations§
Source§impl TernaryValue
impl TernaryValue
Sourcepub fn all() -> [TernaryValue; 3]
pub fn all() -> [TernaryValue; 3]
Get all three values.
Trait Implementations§
Source§impl Clone for TernaryValue
impl Clone for TernaryValue
Source§fn clone(&self) -> TernaryValue
fn clone(&self) -> TernaryValue
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 moreimpl Copy for TernaryValue
Source§impl Debug for TernaryValue
impl Debug for TernaryValue
Source§impl Display for TernaryValue
impl Display for TernaryValue
impl Eq for TernaryValue
Source§impl Hash for TernaryValue
impl Hash for TernaryValue
Source§impl Ord for TernaryValue
impl Ord for TernaryValue
Source§fn cmp(&self, other: &TernaryValue) -> Ordering
fn cmp(&self, other: &TernaryValue) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TernaryValue
impl PartialEq for TernaryValue
Source§fn eq(&self, other: &TernaryValue) -> bool
fn eq(&self, other: &TernaryValue) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for TernaryValue
impl PartialOrd for TernaryValue
impl StructuralPartialEq for TernaryValue
Auto Trait Implementations§
impl Freeze for TernaryValue
impl RefUnwindSafe for TernaryValue
impl Send for TernaryValue
impl Sync for TernaryValue
impl Unpin for TernaryValue
impl UnsafeUnpin for TernaryValue
impl UnwindSafe for TernaryValue
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