pub struct LegacyBatchValuesAdapter<T>(pub T);
Expand description
A newtype wrapper which adjusts an existing types that implement
LegacyBatchValues
to the current BatchValues
API.
Note that the LegacyBatchValues
trait is deprecated and will be
removed in the future, and you should prefer using BatchValues
as it is
more type-safe.
Tuple Fields§
§0: T
Trait Implementations§
Source§impl<T> BatchValues for LegacyBatchValuesAdapter<T>where
T: LegacyBatchValues,
impl<T> BatchValues for LegacyBatchValuesAdapter<T>where
T: LegacyBatchValues,
Source§type BatchValuesIter<'r> = LegacyBatchValuesIteratorAdapter<<T as LegacyBatchValues>::LegacyBatchValuesIter<'r>>
where
LegacyBatchValuesAdapter<T>: 'r
type BatchValuesIter<'r> = LegacyBatchValuesIteratorAdapter<<T as LegacyBatchValues>::LegacyBatchValuesIter<'r>> where LegacyBatchValuesAdapter<T>: 'r
An
Iterator
-like object over the values from the parent BatchValues
object.Source§fn batch_values_iter(
&self,
) -> <LegacyBatchValuesAdapter<T> as BatchValues>::BatchValuesIter<'_>
fn batch_values_iter( &self, ) -> <LegacyBatchValuesAdapter<T> as BatchValues>::BatchValuesIter<'_>
Returns an iterator over the data contained in this object.
Auto Trait Implementations§
impl<T> Freeze for LegacyBatchValuesAdapter<T>where
T: Freeze,
impl<T> RefUnwindSafe for LegacyBatchValuesAdapter<T>where
T: RefUnwindSafe,
impl<T> Send for LegacyBatchValuesAdapter<T>where
T: Send,
impl<T> Sync for LegacyBatchValuesAdapter<T>where
T: Sync,
impl<T> Unpin for LegacyBatchValuesAdapter<T>where
T: Unpin,
impl<T> UnwindSafe for LegacyBatchValuesAdapter<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