pub enum OperatorFamily {
Equality,
StringSubstr,
StringPrefSuf,
RegexMatches,
InList,
NumericCmp,
CidrMatch,
}Expand description
Operator family used by the type-compatibility matrix. Mirrors the
rows of spec/crates/core.md’s “Operator ×
value type compatibility” table — operators in the same row share a
compatibility set.
Variants§
Implementations§
Source§impl OperatorFamily
impl OperatorFamily
Sourcepub fn accepts(self, vt: FieldValueType) -> bool
pub fn accepts(self, vt: FieldValueType) -> bool
Compatibility check from spec/crates/core.md
§ Predicate. The matrix is small and
closed; enumerated here rather than data-driven so a future spec
change forces a recompile-sized review.
Sourcepub fn family_expectation(self) -> &'static str
pub fn family_expectation(self) -> &'static str
Short human label for diagnostic messages.
Trait Implementations§
Source§impl Clone for OperatorFamily
impl Clone for OperatorFamily
Source§fn clone(&self) -> OperatorFamily
fn clone(&self) -> OperatorFamily
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 OperatorFamily
impl Debug for OperatorFamily
Source§impl PartialEq for OperatorFamily
impl PartialEq for OperatorFamily
Source§fn eq(&self, other: &OperatorFamily) -> bool
fn eq(&self, other: &OperatorFamily) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for OperatorFamily
impl Eq for OperatorFamily
impl StructuralPartialEq for OperatorFamily
Auto Trait Implementations§
impl Freeze for OperatorFamily
impl RefUnwindSafe for OperatorFamily
impl Send for OperatorFamily
impl Sync for OperatorFamily
impl Unpin for OperatorFamily
impl UnsafeUnpin for OperatorFamily
impl UnwindSafe for OperatorFamily
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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