pub enum ManyValuedTruth {
True,
False,
Both,
Neither,
Fuzzy(f64),
}Expand description
A truth value in a many-valued logic.
Variants§
True
True.
False
False.
Both
Both true and false (glutted).
Neither
Neither true nor false (gapped).
Fuzzy(f64)
A numerical value in [0, 1] (fuzzy).
Implementations§
Source§impl ManyValuedTruth
impl ManyValuedTruth
Sourcepub fn is_designated(&self) -> bool
pub fn is_designated(&self) -> bool
Is this value “designated” (true-like) in LP/FDE.
Sourcepub fn kleene_and(a: &ManyValuedTruth, b: &ManyValuedTruth) -> ManyValuedTruth
pub fn kleene_and(a: &ManyValuedTruth, b: &ManyValuedTruth) -> ManyValuedTruth
Kleene three-valued conjunction: A ∧ B.
Sourcepub fn kleene_or(a: &ManyValuedTruth, b: &ManyValuedTruth) -> ManyValuedTruth
pub fn kleene_or(a: &ManyValuedTruth, b: &ManyValuedTruth) -> ManyValuedTruth
Kleene three-valued disjunction: A ∨ B.
Sourcepub fn kleene_not(a: &ManyValuedTruth) -> ManyValuedTruth
pub fn kleene_not(a: &ManyValuedTruth) -> ManyValuedTruth
Kleene three-valued negation: ¬A.
Trait Implementations§
Source§impl Clone for ManyValuedTruth
impl Clone for ManyValuedTruth
Source§fn clone(&self) -> ManyValuedTruth
fn clone(&self) -> ManyValuedTruth
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 ManyValuedTruth
impl Debug for ManyValuedTruth
Source§impl PartialEq for ManyValuedTruth
impl PartialEq for ManyValuedTruth
impl StructuralPartialEq for ManyValuedTruth
Auto Trait Implementations§
impl Freeze for ManyValuedTruth
impl RefUnwindSafe for ManyValuedTruth
impl Send for ManyValuedTruth
impl Sync for ManyValuedTruth
impl Unpin for ManyValuedTruth
impl UnsafeUnpin for ManyValuedTruth
impl UnwindSafe for ManyValuedTruth
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