pub enum TriState {
Yes,
No,
Unknown,
}Expand description
A three-valued type equivalent to Option<bool>.
Variants§
Yes
The tri-state value signifying definitive truth.
No
The tri-state value signifying definitive falsity.
Unknown
The tri-state value signifying an unknown truth value.
Implementations§
Source§impl TriState
impl TriState
Sourcepub fn definitely(self) -> bool
pub fn definitely(self) -> bool
A mnemonic for yes().
Sourcepub fn definitely_not(self) -> bool
pub fn definitely_not(self) -> bool
A mnemonic for no().
Trait Implementations§
Source§impl Ord for TriState
impl Ord for TriState
Source§impl PartialOrd for TriState
impl PartialOrd for TriState
impl Copy for TriState
impl Eq for TriState
impl StructuralPartialEq for TriState
Auto Trait Implementations§
impl Freeze for TriState
impl RefUnwindSafe for TriState
impl Send for TriState
impl Sync for TriState
impl Unpin for TriState
impl UnwindSafe for TriState
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