pub enum Connective {
And,
Or,
Implies,
Iff,
Not,
}Expand description
Trait for formatting logical expressions in various notations.
The connectives a formula joins its parts with, whatever token the parser read each from:
If, Then and Implies are all the implication. Every printer asks this one mapping, so the
Logic Output, the Syntax Tree and the generated Rust can never draw a connective differently.
Variants§
Implementations§
Source§impl Connective
impl Connective
pub fn of(op: &TokenType) -> Option<Connective>
Trait Implementations§
Source§impl Clone for Connective
impl Clone for Connective
Source§fn clone(&self) -> Connective
fn clone(&self) -> Connective
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 Connective
impl Debug for Connective
Source§impl PartialEq for Connective
impl PartialEq for Connective
impl Copy for Connective
impl Eq for Connective
impl StructuralPartialEq for Connective
Auto Trait Implementations§
impl Freeze for Connective
impl RefUnwindSafe for Connective
impl Send for Connective
impl Sync for Connective
impl Unpin for Connective
impl UnsafeUnpin for Connective
impl UnwindSafe for Connective
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.