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: TTrait 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
Self: 'r
type BatchValuesIter<'r> = LegacyBatchValuesIteratorAdapter<<T as LegacyBatchValues>::LegacyBatchValuesIter<'r>> where Self: 'r
An
Iterator-like object over the values from the parent BatchValues object.Source§fn batch_values_iter(&self) -> Self::BatchValuesIter<'_>
fn batch_values_iter(&self) -> Self::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