pub struct FieldExpr<T> { /* private fields */ }Expand description
A typed reference to one field. T makes incompatible comparisons fail in
Rust before a plan can be emitted; serde sees only the contained FieldRef.
Implementations§
Source§impl<T> FieldExpr<T>
impl<T> FieldExpr<T>
pub fn new(binding: u32, field: impl Into<String>) -> Self
pub fn expr(&self) -> ScalarExpr
pub fn eq(&self, value: T) -> BoolExprwhere
T: QueryLiteral,
pub fn ne(&self, value: T) -> BoolExprwhere
T: QueryLiteral,
pub fn gt(&self, value: T) -> BoolExprwhere
T: QueryLiteral,
pub fn gte(&self, value: T) -> BoolExprwhere
T: QueryLiteral,
pub fn lt(&self, value: T) -> BoolExprwhere
T: QueryLiteral,
pub fn lte(&self, value: T) -> BoolExprwhere
T: QueryLiteral,
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for FieldExpr<T>
impl<T> RefUnwindSafe for FieldExpr<T>
impl<T> Send for FieldExpr<T>
impl<T> Sync for FieldExpr<T>
impl<T> Unpin for FieldExpr<T>
impl<T> UnsafeUnpin for FieldExpr<T>
impl<T> UnwindSafe for FieldExpr<T>
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