Struct scylla_cql::types::serialize::batch::LegacyBatchValuesIteratorAdapter
source ยท pub struct LegacyBatchValuesIteratorAdapter<T>(pub T);
๐Deprecated since 0.15.1: Legacy serialization API is not type-safe and is going to be removed soon
Expand description
A newtype wrapper which adjusts an existing types that implement
LegacyBatchValuesIterator
to the current BatchValuesIterator
API.
Tuple Fieldsยง
ยง0: T
๐Deprecated since 0.15.1: Legacy serialization API is not type-safe and is going to be removed soon
Trait Implementationsยง
sourceยงimpl<'r, T> BatchValuesIterator<'r> for LegacyBatchValuesIteratorAdapter<T>where
T: LegacyBatchValuesIterator<'r>,
impl<'r, T> BatchValuesIterator<'r> for LegacyBatchValuesIteratorAdapter<T>where
T: LegacyBatchValuesIterator<'r>,
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.
Auto Trait Implementationsยง
impl<T> Freeze for LegacyBatchValuesIteratorAdapter<T>where
T: Freeze,
impl<T> RefUnwindSafe for LegacyBatchValuesIteratorAdapter<T>where
T: RefUnwindSafe,
impl<T> Send for LegacyBatchValuesIteratorAdapter<T>where
T: Send,
impl<T> Sync for LegacyBatchValuesIteratorAdapter<T>where
T: Sync,
impl<T> Unpin for LegacyBatchValuesIteratorAdapter<T>where
T: Unpin,
impl<T> UnwindSafe for LegacyBatchValuesIteratorAdapter<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