Struct scylla::serialize::batch::BatchValuesIteratorFromIterator
source · pub struct BatchValuesIteratorFromIterator<IT>where
IT: Iterator,{ /* private fields */ }
Expand description
Implements BatchValuesIterator
from an Iterator
over references to things that implement SerializeRow
Essentially used internally by this lib to provide implementers of BatchValuesIterator
for cases
that always serialize the same concrete SerializeRow
type
Trait Implementations§
source§impl<'bv, 'sr, IT, SR> BatchValuesIterator<'bv> for BatchValuesIteratorFromIterator<IT>
impl<'bv, 'sr, IT, SR> BatchValuesIterator<'bv> for BatchValuesIteratorFromIterator<IT>
source§fn serialize_next(
&mut self,
ctx: &RowSerializationContext<'_>,
writer: &mut RowWriter<'_>,
) -> Option<Result<(), SerializationError>>
fn serialize_next( &mut self, ctx: &RowSerializationContext<'_>, writer: &mut RowWriter<'_>, ) -> Option<Result<(), SerializationError>>
Serializes the next set of values in the sequence and advances the iterator.
source§fn is_empty_next(&mut self) -> Option<bool>
fn is_empty_next(&mut self) -> Option<bool>
Returns whether the next set of values is empty or not and advances the iterator.
source§impl<IT> From<IT> for BatchValuesIteratorFromIterator<IT>
impl<IT> From<IT> for BatchValuesIteratorFromIterator<IT>
source§fn from(it: IT) -> BatchValuesIteratorFromIterator<IT>
fn from(it: IT) -> BatchValuesIteratorFromIterator<IT>
Converts to this type from the input type.
Auto Trait Implementations§
impl<IT> Freeze for BatchValuesIteratorFromIterator<IT>where
IT: Freeze,
impl<IT> RefUnwindSafe for BatchValuesIteratorFromIterator<IT>where
IT: RefUnwindSafe,
impl<IT> Send for BatchValuesIteratorFromIterator<IT>where
IT: Send,
impl<IT> Sync for BatchValuesIteratorFromIterator<IT>where
IT: Sync,
impl<IT> Unpin for BatchValuesIteratorFromIterator<IT>where
IT: Unpin,
impl<IT> UnwindSafe for BatchValuesIteratorFromIterator<IT>where
IT: 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