Struct scylla::serialize::batch::LegacyBatchValuesAdapter
source ยท pub struct LegacyBatchValuesAdapter<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
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: T
๐Deprecated since 0.15.1: Legacy serialization API is not type-safe and is going to be removed soon
Trait Implementationsยง
sourceยงimpl<T> BatchValues for LegacyBatchValuesAdapter<T>where
T: LegacyBatchValues,
impl<T> BatchValues for LegacyBatchValuesAdapter<T>where
T: LegacyBatchValues,
ยงtype BatchValuesIter<'r> = LegacyBatchValuesIteratorAdapter<<T as LegacyBatchValues>::LegacyBatchValuesIter<'r>>
where
LegacyBatchValuesAdapter<T>: 'r
type BatchValuesIter<'r> = LegacyBatchValuesIteratorAdapter<<T as LegacyBatchValues>::LegacyBatchValuesIter<'r>> where LegacyBatchValuesAdapter<T>: 'r
An
Iterator
-like object over the values from the parent BatchValues
object.sourceยงfn batch_values_iter(
&self,
) -> <LegacyBatchValuesAdapter<T> as BatchValues>::BatchValuesIter<'_>
fn batch_values_iter( &self, ) -> <LegacyBatchValuesAdapter<T> as BatchValues>::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
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