pub enum PredicateValueIR {
String(StringId),
Regex(StringId),
}Expand description
Predicate value: string or regex pattern.
Both variants store StringId (index into StringTable). For regex predicates, the pattern string is also compiled to a DFA during emit.
Variants§
String(StringId)
String comparison value.
Regex(StringId)
Regex pattern (StringId for pattern, compiled to DFA during emit).
Trait Implementations§
Source§impl Clone for PredicateValueIR
impl Clone for PredicateValueIR
Source§fn clone(&self) -> PredicateValueIR
fn clone(&self) -> PredicateValueIR
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 PredicateValueIR
impl Debug for PredicateValueIR
Source§impl PartialEq for PredicateValueIR
impl PartialEq for PredicateValueIR
impl Eq for PredicateValueIR
impl StructuralPartialEq for PredicateValueIR
Auto Trait Implementations§
impl Freeze for PredicateValueIR
impl RefUnwindSafe for PredicateValueIR
impl Send for PredicateValueIR
impl Sync for PredicateValueIR
impl Unpin for PredicateValueIR
impl UnwindSafe for PredicateValueIR
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.