pub enum Logic3 {
L,
H,
X,
}
Expand description
Three-valued logic.
In contrast to bivalent logic values such as bool
this logic type also encodes the unknown value X
.
Variants§
L
Low, zero or ‘false’.
H
High, one or ’true.
X
Value for representing unknown/undecidable/both/irrelevant.
Trait Implementations§
Source§impl LogicValue for Logic3
impl LogicValue for Logic3
impl Copy for Logic3
impl Eq for Logic3
impl StructuralPartialEq for Logic3
Auto Trait Implementations§
impl Freeze for Logic3
impl RefUnwindSafe for Logic3
impl Send for Logic3
impl Sync for Logic3
impl Unpin for Logic3
impl UnwindSafe for Logic3
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more