pub struct Column<'t, S, T>(/* private fields */);
Expand description
Values of this type reference a collumn in a query.
- The lifetime parameter
't
specifies in which query the collumn exists. - The type parameter
S
specifies the expected schema of the query. - And finally the type paramter
T
specifies the type of the column.
Column implements Deref to have table extension methods in case the type is a table type.
Implementations§
Source§impl<'t, S, T: NumTyp> Column<'t, S, T>
impl<'t, S, T: NumTyp> Column<'t, S, T>
Sourcepub fn add(&self, rhs: impl IntoColumn<'t, S, Typ = T>) -> Column<'t, S, T>
pub fn add(&self, rhs: impl IntoColumn<'t, S, Typ = T>) -> Column<'t, S, T>
Add two columns together.
Sourcepub fn lt(&self, rhs: impl IntoColumn<'t, S, Typ = T>) -> Column<'t, S, bool>
pub fn lt(&self, rhs: impl IntoColumn<'t, S, Typ = T>) -> Column<'t, S, bool>
Compute the less than operator of two columns.
Source§impl<'t, S, T: EqTyp + 't> Column<'t, S, T>
impl<'t, S, T: EqTyp + 't> Column<'t, S, T>
Sourcepub fn eq(&self, rhs: impl IntoColumn<'t, S, Typ = T>) -> Column<'t, S, bool>
pub fn eq(&self, rhs: impl IntoColumn<'t, S, Typ = T>) -> Column<'t, S, bool>
Check whether two columns are equal.
Source§impl<'t, S> Column<'t, S, bool>
impl<'t, S> Column<'t, S, bool>
Trait Implementations§
Source§impl<'t, S: 't, T: 't> IntoColumn<'t, S> for Column<'t, S, T>
impl<'t, S: 't, T: 't> IntoColumn<'t, S> for Column<'t, S, T>
Source§fn into_column(self) -> Column<'t, S, Self::Typ>
fn into_column(self) -> Column<'t, S, Self::Typ>
Turn this value into a Column.
Auto Trait Implementations§
impl<'t, S, T> Freeze for Column<'t, S, T>
impl<'t, S, T> !RefUnwindSafe for Column<'t, S, T>
impl<'t, S, T> !Send for Column<'t, S, T>
impl<'t, S, T> !Sync for Column<'t, S, T>
impl<'t, S, T> Unpin for Column<'t, S, T>
impl<'t, S, T> !UnwindSafe for Column<'t, S, 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)