pub enum PredicateValue<'q> {
String(&'q str),
Regex(&'q str),
}Expand description
Predicate value: either a string or a regex pattern.
Variants§
String(&'q str)
String literal value
Regex(&'q str)
Regex pattern (the content between / delimiters)
Trait Implementations§
Source§impl<'q> Clone for PredicateValue<'q>
impl<'q> Clone for PredicateValue<'q>
Source§fn clone(&self) -> PredicateValue<'q>
fn clone(&self) -> PredicateValue<'q>
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<'q> Debug for PredicateValue<'q>
impl<'q> Debug for PredicateValue<'q>
Source§impl<'q> Hash for PredicateValue<'q>
impl<'q> Hash for PredicateValue<'q>
Source§impl<'q> PartialEq for PredicateValue<'q>
impl<'q> PartialEq for PredicateValue<'q>
impl<'q> Copy for PredicateValue<'q>
impl<'q> Eq for PredicateValue<'q>
impl<'q> StructuralPartialEq for PredicateValue<'q>
Auto Trait Implementations§
impl<'q> Freeze for PredicateValue<'q>
impl<'q> RefUnwindSafe for PredicateValue<'q>
impl<'q> Send for PredicateValue<'q>
impl<'q> Sync for PredicateValue<'q>
impl<'q> Unpin for PredicateValue<'q>
impl<'q> UnwindSafe for PredicateValue<'q>
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.