Enum rapidquery::Expression
source · [−]pub enum Expression<Field> {
Field(Field),
And {
and: (Box<Self>, Box<Self>),
},
Or {
or: (Box<Self>, Box<Self>),
},
Not {
not: Box<Self>,
},
Empty,
}
Variants
Field(Field)
And
Or
Not
Fields
not: Box<Self>
Empty
Implementations
sourceimpl<Field> Expression<Field>
impl<Field> Expression<Field>
pub fn evaluate<R, V, E>(&self, resolver: &R) -> Result<V, E> where
R: FieldResolver<V, FieldType = Field, Error = E>,
V: BitAndAssign + BitOrAssign + Not<Output = V> + Sizeable,
Trait Implementations
sourceimpl<Field: Clone> Clone for Expression<Field>
impl<Field: Clone> Clone for Expression<Field>
sourcefn clone(&self) -> Expression<Field>
fn clone(&self) -> Expression<Field>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<Field: Debug> Debug for Expression<Field>
impl<Field: Debug> Debug for Expression<Field>
sourceimpl<Field> Default for Expression<Field>
impl<Field> Default for Expression<Field>
sourceimpl<'de, Field> Deserialize<'de> for Expression<Field> where
Field: Deserialize<'de>,
impl<'de, Field> Deserialize<'de> for Expression<Field> where
Field: Deserialize<'de>,
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<Field: Hash> Hash for Expression<Field>
impl<Field: Hash> Hash for Expression<Field>
sourceimpl<Field: PartialEq> PartialEq<Expression<Field>> for Expression<Field>
impl<Field: PartialEq> PartialEq<Expression<Field>> for Expression<Field>
sourcefn eq(&self, other: &Expression<Field>) -> bool
fn eq(&self, other: &Expression<Field>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &Expression<Field>) -> bool
fn ne(&self, other: &Expression<Field>) -> bool
This method tests for !=
.
sourceimpl<Field> Serialize for Expression<Field> where
Field: Serialize,
impl<Field> Serialize for Expression<Field> where
Field: Serialize,
impl<Field: Eq> Eq for Expression<Field>
impl<Field> StructuralEq for Expression<Field>
impl<Field> StructuralPartialEq for Expression<Field>
Auto Trait Implementations
impl<Field> RefUnwindSafe for Expression<Field> where
Field: RefUnwindSafe,
impl<Field> Send for Expression<Field> where
Field: Send,
impl<Field> Sync for Expression<Field> where
Field: Sync,
impl<Field> Unpin for Expression<Field> where
Field: Unpin,
impl<Field> UnwindSafe for Expression<Field> where
Field: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more