Enum ConditionOp
pub enum ConditionOp {
Gt,
Lt,
Gte,
Lte,
Eq,
Neq,
}Expand description
A condition comparison operator. This enum is the single source of truth for
the operator set: the parser scans its tokens, the evaluator matches on its
variants, and every authoring surface renders the list this enum yields (via
ConditionOp::catalog). Adding an operator here is the only edit needed;
no surface hand-lists operators.
Variants§
Implementations§
Source§impl ConditionOp
impl ConditionOp
Sourcepub fn label(self) -> &'static str
pub fn label(self) -> &'static str
A short human label for pickers (“is”, “is greater than”, …).
Sourcepub fn catalog() -> Vec<ConditionOpSpec>
pub fn catalog() -> Vec<ConditionOpSpec>
The full operator catalog in canonical display order (equality first, then ordering), for authoring surfaces to render verbatim.
Sourcepub fn catalog_tokens() -> Vec<&'static str>
pub fn catalog_tokens() -> Vec<&'static str>
Every operator token, for the parser’s longest-first scan. Walks the same enum the catalog does, so no token literal is hand-listed twice.
Trait Implementations§
Source§impl Clone for ConditionOp
impl Clone for ConditionOp
Source§fn clone(&self) -> ConditionOp
fn clone(&self) -> ConditionOp
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConditionOp
impl Debug for ConditionOp
Source§impl IntoEnumIterator for ConditionOp
impl IntoEnumIterator for ConditionOp
type Iterator = ConditionOpIter
fn iter() -> ConditionOpIter ⓘ
Source§impl PartialEq for ConditionOp
impl PartialEq for ConditionOp
impl Copy for ConditionOp
impl Eq for ConditionOp
impl StructuralPartialEq for ConditionOp
Auto Trait Implementations§
impl Freeze for ConditionOp
impl RefUnwindSafe for ConditionOp
impl Send for ConditionOp
impl Sync for ConditionOp
impl Unpin for ConditionOp
impl UnsafeUnpin for ConditionOp
impl UnwindSafe for ConditionOp
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more