pub enum WfsLiteral {
Positive(WfsAtom),
Negative(WfsAtom),
}Expand description
A ground literal in a rule body
Variants§
Positive(WfsAtom)
Positive literal: atom must be true
Negative(WfsAtom)
Negative literal: atom must be false
Implementations§
Source§impl WfsLiteral
impl WfsLiteral
Sourcepub fn is_positive(&self) -> bool
pub fn is_positive(&self) -> bool
Check if this is a positive literal
Sourcepub fn is_negative(&self) -> bool
pub fn is_negative(&self) -> bool
Check if this is a negative literal
Trait Implementations§
Source§impl Clone for WfsLiteral
impl Clone for WfsLiteral
Source§fn clone(&self) -> WfsLiteral
fn clone(&self) -> WfsLiteral
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 WfsLiteral
impl Debug for WfsLiteral
Source§impl Hash for WfsLiteral
impl Hash for WfsLiteral
Source§impl PartialEq for WfsLiteral
impl PartialEq for WfsLiteral
impl Eq for WfsLiteral
impl StructuralPartialEq for WfsLiteral
Auto Trait Implementations§
impl Freeze for WfsLiteral
impl RefUnwindSafe for WfsLiteral
impl Send for WfsLiteral
impl Sync for WfsLiteral
impl Unpin for WfsLiteral
impl UnsafeUnpin for WfsLiteral
impl UnwindSafe for WfsLiteral
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