pub enum Outcome {
T,
F,
N,
}Expand description
Possible outcome values when evaluating an Expression against an
individual Resource from a collection.
From OGC CQL2:
Each resource instance in the source collection is evaluated against a filtering expression. The net effect of evaluating a filter
Expressionis a subset of resources that satisfy the predicate(s) in theExpression.
Logically connected predicates are evaluated according to the following
truth table, where T is TRUE, F is FALSE and N is NULL.
+-----+-----+---------+---------+
| P1 | P2 | P1 & P2 | P1 | P2 |
+-----+-----+---------+---------+
| T | T | T | T |
| T | F | F | T |
| F | T | F | T |
| F | F | F | F |
| T | N | N | T |
| F | N | F | N |
| N | T | N | T |
| N | F | F | N |
| N | N | N | N |
+-----+-----+---------+---------+Variants§
T
The input satisfies the Expression and should be marked as being in the result set.
F
The input does not satisfy the filter Expression and should not be included the result set.
N
Likewise.
Implementations§
Trait Implementations§
impl Eq for Outcome
impl StructuralPartialEq for Outcome
Auto Trait Implementations§
impl Freeze for Outcome
impl RefUnwindSafe for Outcome
impl Send for Outcome
impl Sync for Outcome
impl Unpin for Outcome
impl UnwindSafe for Outcome
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<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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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