pub struct Tristate(/* private fields */);Expand description
A tristate type is basically a bool wrapped in an option, where None represents ‘m’, or the ‘maybe’ state.
Implementations§
Trait Implementations§
Source§impl Into<Tristate> for Variant
impl Into<Tristate> for Variant
Source§fn into(self) -> Tristate
fn into(self) -> Tristate
Converts the variant into a tristate value, using the
Self::to_tristate() function.
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