#[repr(transparent)]pub struct TableUsingMapper<T>(pub T);Tuple Fields§
§0: TImplementations§
Trait Implementations§
Source§impl<'scope, T> Table<'scope> for TableUsingMapper<T>
impl<'scope, T> Table<'scope> for TableUsingMapper<T>
Source§type Result = <T as TableHKT>::InMode<ValueMode>
type Result = <T as TableHKT>::InMode<ValueMode>
The value a row of this table has when loaded from the database.
Source§fn visit(&self, f: &mut impl FnMut(&ErasedExpr), mode: VisitTableMode)
fn visit(&self, f: &mut impl FnMut(&ErasedExpr), mode: VisitTableMode)
Visit each expr in the table. Read more
Source§fn visit_mut(
&mut self,
f: &mut impl FnMut(&mut ErasedExpr),
mode: VisitTableMode,
)
fn visit_mut( &mut self, f: &mut impl FnMut(&mut ErasedExpr), mode: VisitTableMode, )
Visit each expr in the table, with a mutable reference. Read more
Source§impl<T> TableLoaderManySqlx for TableUsingMapper<T>
Available on crate feature sqlx only.
impl<T> TableLoaderManySqlx for TableUsingMapper<T>
Available on crate feature
sqlx only.Source§impl<T> TableLoaderSqlx for TableUsingMapper<T>
Available on crate feature sqlx only.
impl<T> TableLoaderSqlx for TableUsingMapper<T>
Available on crate feature
sqlx only.Source§fn load<'a>(
&self,
values: &mut impl Iterator<Item = PgValueRef<'a>>,
) -> Self::Result
fn load<'a>( &self, values: &mut impl Iterator<Item = PgValueRef<'a>>, ) -> Self::Result
Load the table given an iterator over a row’s values
Source§fn skip<'a>(&self, values: &mut impl Iterator<Item = PgValueRef<'a>>)
fn skip<'a>(&self, values: &mut impl Iterator<Item = PgValueRef<'a>>)
discard N columns from the iterator ofer a row
This is used when this value was discarded by a MaybeTable.
Source§impl<T> TransparentWrapper<T> for TableUsingMapper<T>
impl<T> TransparentWrapper<T> for TableUsingMapper<T>
Source§fn wrap_ref(s: &Inner) -> &Self
fn wrap_ref(s: &Inner) -> &Self
Convert a reference to the inner type into a reference to the wrapper
type.
Source§fn wrap_mut(s: &mut Inner) -> &mut Self
fn wrap_mut(s: &mut Inner) -> &mut Self
Convert a mutable reference to the inner type into a mutable reference to
the wrapper type.
Source§fn wrap_slice(s: &[Inner]) -> &[Self]where
Self: Sized,
fn wrap_slice(s: &[Inner]) -> &[Self]where
Self: Sized,
Convert a slice to the inner type into a slice to the wrapper type.
Source§fn wrap_slice_mut(s: &mut [Inner]) -> &mut [Self]where
Self: Sized,
fn wrap_slice_mut(s: &mut [Inner]) -> &mut [Self]where
Self: Sized,
Convert a mutable slice to the inner type into a mutable slice to the
wrapper type.
Source§fn peel_ref(s: &Self) -> &Inner
fn peel_ref(s: &Self) -> &Inner
Convert a reference to the wrapper type into a reference to the inner
type.
Source§fn peel_mut(s: &mut Self) -> &mut Inner
fn peel_mut(s: &mut Self) -> &mut Inner
Convert a mutable reference to the wrapper type into a mutable reference
to the inner type.
Source§fn peel_slice(s: &[Self]) -> &[Inner]where
Self: Sized,
fn peel_slice(s: &[Self]) -> &[Inner]where
Self: Sized,
Convert a slice to the wrapped type into a slice to the inner type.
Source§fn peel_slice_mut(s: &mut [Self]) -> &mut [Inner]where
Self: Sized,
fn peel_slice_mut(s: &mut [Self]) -> &mut [Inner]where
Self: Sized,
Convert a mutable slice to the wrapped type into a mutable slice to the
inner type.
Auto Trait Implementations§
impl<T> Freeze for TableUsingMapper<T>where
T: Freeze,
impl<T> RefUnwindSafe for TableUsingMapper<T>where
T: RefUnwindSafe,
impl<T> Send for TableUsingMapper<T>where
T: Send,
impl<T> Sync for TableUsingMapper<T>where
T: Sync,
impl<T> Unpin for TableUsingMapper<T>where
T: Unpin,
impl<T> UnwindSafe for TableUsingMapper<T>where
T: 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