pub enum ThreeValued {
    False,
    True,
    Unknown,
}Expand description
An extension of a Boolean to three-valued logic.
Variants§
Implementations§
Source§impl ThreeValued
 
impl ThreeValued
Sourcepub fn is_unknown(&self) -> bool
 
pub fn is_unknown(&self) -> bool
Whether the value is unknown, i.e. neither false nor true.
pub fn from_bool(value: bool) -> ThreeValued
Trait Implementations§
Source§impl BitAnd for ThreeValued
 
impl BitAnd for ThreeValued
Source§type Output = ThreeValued
 
type Output = ThreeValued
The resulting type after applying the 
& operator.Source§fn bitand(self, rhs: ThreeValued) -> <ThreeValued as BitAnd>::Output
 
fn bitand(self, rhs: ThreeValued) -> <ThreeValued as BitAnd>::Output
Performs the 
& operation. Read moreSource§impl BitOr for ThreeValued
 
impl BitOr for ThreeValued
Source§type Output = ThreeValued
 
type Output = ThreeValued
The resulting type after applying the 
| operator.Source§fn bitor(self, rhs: ThreeValued) -> <ThreeValued as BitOr>::Output
 
fn bitor(self, rhs: ThreeValued) -> <ThreeValued as BitOr>::Output
Performs the 
| operation. Read moreSource§impl BitXor for ThreeValued
 
impl BitXor for ThreeValued
Source§type Output = ThreeValued
 
type Output = ThreeValued
The resulting type after applying the 
^ operator.Source§fn bitxor(self, rhs: ThreeValued) -> <ThreeValued as BitXor>::Output
 
fn bitxor(self, rhs: ThreeValued) -> <ThreeValued as BitXor>::Output
Performs the 
^ operation. Read moreSource§impl Clone for ThreeValued
 
impl Clone for ThreeValued
Source§fn clone(&self) -> ThreeValued
 
fn clone(&self) -> ThreeValued
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 ThreeValued
 
impl Debug for ThreeValued
Source§impl<'de> Deserialize<'de> for ThreeValued
 
impl<'de> Deserialize<'de> for ThreeValued
Source§fn deserialize<__D>(
    __deserializer: __D,
) -> Result<ThreeValued, <__D as Deserializer<'de>>::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(
    __deserializer: __D,
) -> Result<ThreeValued, <__D as Deserializer<'de>>::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ThreeValued
 
impl Display for ThreeValued
Source§impl Hash for ThreeValued
 
impl Hash for ThreeValued
Source§impl Not for ThreeValued
 
impl Not for ThreeValued
Source§type Output = ThreeValued
 
type Output = ThreeValued
The resulting type after applying the 
! operator.Source§fn not(self) -> ThreeValued
 
fn not(self) -> ThreeValued
Performs the unary 
! operation. Read moreSource§impl Ord for ThreeValued
 
impl Ord for ThreeValued
Source§fn cmp(&self, other: &ThreeValued) -> Ordering
 
fn cmp(&self, other: &ThreeValued) -> Ordering
1.21.0 · 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 ThreeValued
 
impl PartialEq for ThreeValued
Source§impl PartialOrd for ThreeValued
 
impl PartialOrd for ThreeValued
Source§impl Serialize for ThreeValued
 
impl Serialize for ThreeValued
Source§fn serialize<__S>(
    &self,
    __serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
    __S: Serializer,
 
fn serialize<__S>(
    &self,
    __serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
    __S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for ThreeValued
impl Eq for ThreeValued
impl StructuralPartialEq for ThreeValued
Auto Trait Implementations§
impl Freeze for ThreeValued
impl RefUnwindSafe for ThreeValued
impl Send for ThreeValued
impl Sync for ThreeValued
impl Unpin for ThreeValued
impl UnwindSafe for ThreeValued
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<Q, K> Comparable<K> for Q
 
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.