#[non_exhaustive]pub enum PredicateFailure {
EmptyAttributeMask,
EmptyNameSet,
}Expand description
Why a query-by-example clause was rejected.
Both cases describe a clause that would silently match everything. Rejecting them turns a likely caller mistake into a reported error rather than an invisible match-all.
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.
EmptyAttributeMask
An attribute mask was zero. Every bit of an empty mask is both set and clear, so the clause is vacuous either way round.
EmptyNameSet
A name-pattern set was empty. It matches nothing, and its negation matches everything.
Trait Implementations§
Source§impl Clone for PredicateFailure
impl Clone for PredicateFailure
Source§fn clone(&self) -> PredicateFailure
fn clone(&self) -> PredicateFailure
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 moreimpl Copy for PredicateFailure
Source§impl Debug for PredicateFailure
impl Debug for PredicateFailure
impl Eq for PredicateFailure
Source§impl Hash for PredicateFailure
impl Hash for PredicateFailure
Source§impl PartialEq for PredicateFailure
impl PartialEq for PredicateFailure
impl StructuralPartialEq for PredicateFailure
Auto Trait Implementations§
impl Freeze for PredicateFailure
impl RefUnwindSafe for PredicateFailure
impl Send for PredicateFailure
impl Sync for PredicateFailure
impl Unpin for PredicateFailure
impl UnsafeUnpin for PredicateFailure
impl UnwindSafe for PredicateFailure
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