#[non_exhaustive]pub enum EntryPredicate {
QueryByExample(QueryByExample),
}Expand description
What a request asks of each entry.
Deliberately an enum with a single variant today. The variant is the settled v1 predicate; the enum is the seam that lets a later predicate family – an expression tree, say – be added without replacing the request API that carries it.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
QueryByExample(QueryByExample)
A flat conjunction of query-by-example clauses.
Implementations§
Source§impl EntryPredicate
impl EntryPredicate
Sourcepub fn matches(&self, entry: &DirectoryEntry) -> bool
pub fn matches(&self, entry: &DirectoryEntry) -> bool
Whether entry satisfies this predicate.
Sourcepub fn matches_everything(&self) -> bool
pub fn matches_everything(&self) -> bool
Whether this predicate accepts every entry, so evaluation can be skipped entirely.
Trait Implementations§
Source§impl Clone for EntryPredicate
impl Clone for EntryPredicate
Source§fn clone(&self) -> EntryPredicate
fn clone(&self) -> EntryPredicate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EntryPredicate
impl Debug for EntryPredicate
Source§impl Default for EntryPredicate
impl Default for EntryPredicate
impl Eq for EntryPredicate
Source§impl From<QueryByExample> for EntryPredicate
impl From<QueryByExample> for EntryPredicate
Source§fn from(query: QueryByExample) -> Self
fn from(query: QueryByExample) -> Self
Converts to this type from the input type.
Source§impl PartialEq for EntryPredicate
impl PartialEq for EntryPredicate
impl StructuralPartialEq for EntryPredicate
Auto Trait Implementations§
impl Freeze for EntryPredicate
impl RefUnwindSafe for EntryPredicate
impl Send for EntryPredicate
impl Sync for EntryPredicate
impl Unpin for EntryPredicate
impl UnsafeUnpin for EntryPredicate
impl UnwindSafe for EntryPredicate
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