pub struct Calc<M, T> { /* private fields */ }Expand description
Result of arithmetic on typed handles: an expression that is still known
to have type T, so it can be compared with and assigned to T fields.
Implementations§
Source§impl<M, T> Calc<M, T>
impl<M, T> Calc<M, T>
Sourcepub fn alias(self, name: impl Into<Ident>) -> SelectExpr
pub fn alias(self, name: impl Into<Ident>) -> SelectExpr
Name this expression for values(..).
Source§impl<M, T> Calc<M, T>
impl<M, T> Calc<M, T>
Sourcepub fn is_not_null(self) -> Expr
pub fn is_not_null(self) -> Expr
IS NOT NULL.
Sourcepub fn is_in<L: Literal<T>>(self, values: impl IntoIterator<Item = L>) -> Expr
pub fn is_in<L: Literal<T>>(self, values: impl IntoIterator<Item = L>) -> Expr
Membership in a list of literals.
Sourcepub fn in_subquery(self, plan: QueryPlan) -> Expr
pub fn in_subquery(self, plan: QueryPlan) -> Expr
Membership in the single column a subquery selects.
Source§impl<M, T: TextLike> Calc<M, T>
impl<M, T: TextLike> Calc<M, T>
Sourcepub fn starts_with(self, needle: impl Into<String>) -> Expr
pub fn starts_with(self, needle: impl Into<String>) -> Expr
Text lookup starts_with.
Sourcepub fn istarts_with(self, needle: impl Into<String>) -> Expr
pub fn istarts_with(self, needle: impl Into<String>) -> Expr
Text lookup istarts_with.
Sourcepub fn iends_with(self, needle: impl Into<String>) -> Expr
pub fn iends_with(self, needle: impl Into<String>) -> Expr
Text lookup iends_with.
Trait Implementations§
Auto Trait Implementations§
impl<M, T> Freeze for Calc<M, T>
impl<M, T> RefUnwindSafe for Calc<M, T>
impl<M, T> Send for Calc<M, T>
impl<M, T> Sync for Calc<M, T>
impl<M, T> Unpin for Calc<M, T>
impl<M, T> UnsafeUnpin for Calc<M, T>
impl<M, T> UnwindSafe for Calc<M, 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