Trait scylla_cql::frame::value::LegacyBatchValuesIterator
source · pub trait LegacyBatchValuesIterator<'a> {
// Required methods
fn next_serialized(&mut self) -> Option<SerializedResult<'a>>;
fn write_next_to_request(
&mut self,
buf: &mut impl BufMut,
) -> Option<Result<(), SerializeValuesError>>;
fn skip_next(&mut self) -> Option<()>;
// Provided method
fn count(self) -> usize
where Self: Sized { ... }
}
👎Deprecated since 0.15.1: Legacy serialization API is not type-safe and is going to be removed soon
Expand description
An iterator-like for ValueList
An instance of this can be easily obtained from IT: Iterator<Item: ValueList>
: that would be
BatchValuesIteratorFromIterator<IT>
It’s just essentially making methods from ValueList
accessible instead of being an actual iterator because of
compiler limitations that would otherwise be very complex to overcome.
(specifically, types being different would require yielding enums for tuple impls)
Required Methods§
fn next_serialized(&mut self) -> Option<SerializedResult<'a>>
👎Deprecated since 0.15.1: Legacy serialization API is not type-safe and is going to be removed soon
fn write_next_to_request( &mut self, buf: &mut impl BufMut, ) -> Option<Result<(), SerializeValuesError>>
👎Deprecated since 0.15.1: Legacy serialization API is not type-safe and is going to be removed soon
fn skip_next(&mut self) -> Option<()>
👎Deprecated since 0.15.1: Legacy serialization API is not type-safe and is going to be removed soon
Provided Methods§
fn count(self) -> usizewhere
Self: Sized,
👎Deprecated since 0.15.1: Legacy serialization API is not type-safe and is going to be removed soon
Object Safety§
This trait is not object safe.