pub struct RawBatchValuesAdapter<BV, CTX> { /* private fields */ }
Expand description
Takes BatchValues
and an iterator over contexts, and turns them into a RawBatchValues
.
Implementations§
Source§impl<BV, CTX> RawBatchValuesAdapter<BV, CTX>
impl<BV, CTX> RawBatchValuesAdapter<BV, CTX>
Sourcepub fn new(batch_values: BV, contexts: CTX) -> RawBatchValuesAdapter<BV, CTX>
pub fn new(batch_values: BV, contexts: CTX) -> RawBatchValuesAdapter<BV, CTX>
Creates a new RawBatchValuesAdapter
object.
Trait Implementations§
Source§impl<'ctx, BV, CTX> RawBatchValues for RawBatchValuesAdapter<BV, CTX>
impl<'ctx, BV, CTX> RawBatchValues for RawBatchValuesAdapter<BV, CTX>
Source§type RawBatchValuesIter<'r> = RawBatchValuesIteratorAdapter<<BV as BatchValues>::BatchValuesIter<'r>, CTX>
where
RawBatchValuesAdapter<BV, CTX>: 'r
type RawBatchValuesIter<'r> = RawBatchValuesIteratorAdapter<<BV as BatchValues>::BatchValuesIter<'r>, CTX> where RawBatchValuesAdapter<BV, CTX>: 'r
An
Iterator
-like object over the values from the parent BatchValues
object.Source§fn batch_values_iter(
&self,
) -> <RawBatchValuesAdapter<BV, CTX> as RawBatchValues>::RawBatchValuesIter<'_>
fn batch_values_iter( &self, ) -> <RawBatchValuesAdapter<BV, CTX> as RawBatchValues>::RawBatchValuesIter<'_>
Returns an iterator over the data contained in this object.
Auto Trait Implementations§
impl<BV, CTX> Freeze for RawBatchValuesAdapter<BV, CTX>
impl<BV, CTX> RefUnwindSafe for RawBatchValuesAdapter<BV, CTX>where
BV: RefUnwindSafe,
CTX: RefUnwindSafe,
impl<BV, CTX> Send for RawBatchValuesAdapter<BV, CTX>
impl<BV, CTX> Sync for RawBatchValuesAdapter<BV, CTX>
impl<BV, CTX> Unpin for RawBatchValuesAdapter<BV, CTX>
impl<BV, CTX> UnwindSafe for RawBatchValuesAdapter<BV, CTX>where
BV: UnwindSafe,
CTX: 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