#[repr(i8)]pub enum Trinary {
True = 1,
Maybe = 0,
False = -1,
}Variants§
Implementations§
Source§impl Trinary
impl Trinary
pub fn is_true(self) -> bool
pub fn maybe_true(self) -> bool
pub fn is_false(self) -> bool
pub fn maybe_false(self) -> bool
pub fn is_maybe(self) -> bool
pub fn and(self, other: Trinary) -> Trinary
pub fn or(self, other: Trinary) -> Trinary
pub fn xor(self, other: Trinary) -> Trinary
pub fn negate(self) -> Trinary
Trait Implementations§
Source§impl BitAndAssign<bool> for Trinary
impl BitAndAssign<bool> for Trinary
Source§fn bitand_assign(&mut self, other: bool)
fn bitand_assign(&mut self, other: bool)
Performs the
&= operation. Read moreSource§impl BitAndAssign for Trinary
impl BitAndAssign for Trinary
Source§fn bitand_assign(&mut self, other: Self)
fn bitand_assign(&mut self, other: Self)
Performs the
&= operation. Read moreSource§impl BitOrAssign<bool> for Trinary
impl BitOrAssign<bool> for Trinary
Source§fn bitor_assign(&mut self, other: bool)
fn bitor_assign(&mut self, other: bool)
Performs the
|= operation. Read moreSource§impl BitOrAssign for Trinary
impl BitOrAssign for Trinary
Source§fn bitor_assign(&mut self, other: Self)
fn bitor_assign(&mut self, other: Self)
Performs the
|= operation. Read moreSource§impl BitXorAssign for Trinary
impl BitXorAssign for Trinary
Source§fn bitxor_assign(&mut self, other: Self)
fn bitxor_assign(&mut self, other: Self)
Performs the
^= operation. Read moreSource§impl<'de> Deserialize<'de> for Trinary
impl<'de> Deserialize<'de> for Trinary
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 FromIterator<Trinary> for Trinary
impl FromIterator<Trinary> for Trinary
Source§impl Ord for Trinary
impl Ord for Trinary
Source§impl PartialOrd for Trinary
impl PartialOrd for Trinary
impl Copy for Trinary
impl Eq for Trinary
impl StructuralPartialEq for Trinary
Auto Trait Implementations§
impl Freeze for Trinary
impl RefUnwindSafe for Trinary
impl Send for Trinary
impl Sync for Trinary
impl Unpin for Trinary
impl UnwindSafe for Trinary
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