pub struct ColumnExpr<C>where
C: TypedColumn,{ /* private fields */ }Expand description
列引用表达式
将 TypedColumn 包装为 TypedExpression,
使列可直接用于表达式位置(如 SELECT 子句)。
Implementations§
Source§impl<C> ColumnExpr<C>where
C: TypedColumn,
impl<C> ColumnExpr<C>where
C: TypedColumn,
Sourcepub fn new() -> ColumnExpr<C>
pub fn new() -> ColumnExpr<C>
创建列引用表达式
Trait Implementations§
Source§impl<C> Default for ColumnExpr<C>where
C: TypedColumn,
impl<C> Default for ColumnExpr<C>where
C: TypedColumn,
Source§fn default() -> ColumnExpr<C>
fn default() -> ColumnExpr<C>
Returns the “default value” for a type. Read more
Source§impl<C> ExprTable for ColumnExpr<C>where
C: TypedColumn,
impl<C> ExprTable for ColumnExpr<C>where
C: TypedColumn,
Source§type Table = <C as TypedColumn>::Table
type Table = <C as TypedColumn>::Table
表达式所属的表
Source§impl<C> TypedExpression for ColumnExpr<C>where
C: TypedColumn,
impl<C> TypedExpression for ColumnExpr<C>where
C: TypedColumn,
Auto Trait Implementations§
impl<C> Freeze for ColumnExpr<C>
impl<C> RefUnwindSafe for ColumnExpr<C>where
C: RefUnwindSafe,
impl<C> Send for ColumnExpr<C>where
C: Send,
impl<C> Sync for ColumnExpr<C>where
C: Sync,
impl<C> Unpin for ColumnExpr<C>where
C: Unpin,
impl<C> UnsafeUnpin for ColumnExpr<C>
impl<C> UnwindSafe for ColumnExpr<C>where
C: UnwindSafe,
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<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