pub enum PredicateQuery {
ByName(String),
ByArity(usize),
BySignature(Vec<String>),
ByDomain(String),
ByPattern(PredicatePattern),
And(Vec<PredicateQuery>),
Or(Vec<PredicateQuery>),
}Expand description
Query for predicates
Variants§
ByName(String)
Find predicate by exact name
ByArity(usize)
Find predicates by arity
BySignature(Vec<String>)
Find predicates by exact signature
ByDomain(String)
Find predicates containing a specific domain
ByPattern(PredicatePattern)
Find predicates matching a pattern
And(Vec<PredicateQuery>)
Conjunction of queries
Or(Vec<PredicateQuery>)
Disjunction of queries
Implementations§
Source§impl PredicateQuery
impl PredicateQuery
pub fn by_name(name: impl Into<String>) -> Self
pub fn by_arity(arity: usize) -> Self
pub fn by_signature(domains: Vec<String>) -> Self
pub fn by_domain(domain: impl Into<String>) -> Self
pub fn by_pattern(pattern: PredicatePattern) -> Self
pub fn and(queries: Vec<PredicateQuery>) -> Self
pub fn or(queries: Vec<PredicateQuery>) -> Self
Trait Implementations§
Source§impl Clone for PredicateQuery
impl Clone for PredicateQuery
Source§fn clone(&self) -> PredicateQuery
fn clone(&self) -> PredicateQuery
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 PredicateQuery
impl Debug for PredicateQuery
Source§impl Hash for PredicateQuery
impl Hash for PredicateQuery
Source§impl PartialEq for PredicateQuery
impl PartialEq for PredicateQuery
impl Eq for PredicateQuery
impl StructuralPartialEq for PredicateQuery
Auto Trait Implementations§
impl Freeze for PredicateQuery
impl RefUnwindSafe for PredicateQuery
impl Send for PredicateQuery
impl Sync for PredicateQuery
impl Unpin for PredicateQuery
impl UnwindSafe for PredicateQuery
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.