pub enum TrileanDomain {
Bottom,
False,
True,
Top,
}Expand description
The three-valued logic domain (maybe, true, false).
Variants§
Implementations§
Source§impl TrileanDomain
impl TrileanDomain
Sourcepub fn and(&self, other: &TrileanDomain) -> TrileanDomain
pub fn and(&self, other: &TrileanDomain) -> TrileanDomain
Logical AND of two trileans.
Sourcepub fn or(&self, other: &TrileanDomain) -> TrileanDomain
pub fn or(&self, other: &TrileanDomain) -> TrileanDomain
Logical OR of two trileans.
Sourcepub fn not(&self) -> TrileanDomain
pub fn not(&self) -> TrileanDomain
Logical NOT.
Sourcepub fn join(&self, other: &TrileanDomain) -> TrileanDomain
pub fn join(&self, other: &TrileanDomain) -> TrileanDomain
Join two trileans.
Sourcepub fn is_definitely_true(&self) -> bool
pub fn is_definitely_true(&self) -> bool
Return whether this is definitely true.
Sourcepub fn may_be_true(&self) -> bool
pub fn may_be_true(&self) -> bool
Return whether this might be true.
Trait Implementations§
Source§impl Clone for TrileanDomain
impl Clone for TrileanDomain
Source§fn clone(&self) -> TrileanDomain
fn clone(&self) -> TrileanDomain
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 TrileanDomain
impl Debug for TrileanDomain
Source§impl PartialEq for TrileanDomain
impl PartialEq for TrileanDomain
impl Copy for TrileanDomain
impl Eq for TrileanDomain
impl StructuralPartialEq for TrileanDomain
Auto Trait Implementations§
impl Freeze for TrileanDomain
impl RefUnwindSafe for TrileanDomain
impl Send for TrileanDomain
impl Sync for TrileanDomain
impl Unpin for TrileanDomain
impl UnsafeUnpin for TrileanDomain
impl UnwindSafe for TrileanDomain
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