pub struct LegacyBatchValuesFirstSerialized<'f, T> { /* private fields */ }
Expand description
Allows reusing already-serialized first value
We’ll need to build a LegacySerializedValues
for the first ~ValueList
of a batch to figure out the shard (#448).
Once that is done, we can use that instead of re-serializing.
This struct implements both BatchValues
and BatchValuesIterator
for that purpose
Implementations§
Source§impl<'f, T: LegacyBatchValues> LegacyBatchValuesFirstSerialized<'f, T>
impl<'f, T: LegacyBatchValues> LegacyBatchValuesFirstSerialized<'f, T>
pub fn new( batch_values: T, already_serialized_first: Option<&'f LegacySerializedValues>, ) -> Self
Trait Implementations§
Source§impl<'f, BV: LegacyBatchValues> LegacyBatchValues for LegacyBatchValuesFirstSerialized<'f, BV>
impl<'f, BV: LegacyBatchValues> LegacyBatchValues for LegacyBatchValuesFirstSerialized<'f, BV>
Source§type LegacyBatchValuesIter<'r> = LegacyBatchValuesFirstSerialized<'f, <BV as LegacyBatchValues>::LegacyBatchValuesIter<'r>>
where
Self: 'r
type LegacyBatchValuesIter<'r> = LegacyBatchValuesFirstSerialized<'f, <BV as LegacyBatchValues>::LegacyBatchValuesIter<'r>> where Self: 'r
For some unknown reason, this type, when not resolved to a concrete type for a given async function,
cannot live across await boundaries while maintaining the corresponding future
Send
, unless 'r: 'static
Read morefn batch_values_iter(&self) -> Self::LegacyBatchValuesIter<'_>
Source§impl<'a, 'f: 'a, IT: LegacyBatchValuesIterator<'a>> LegacyBatchValuesIterator<'a> for LegacyBatchValuesFirstSerialized<'f, IT>
impl<'a, 'f: 'a, IT: LegacyBatchValuesIterator<'a>> LegacyBatchValuesIterator<'a> for LegacyBatchValuesFirstSerialized<'f, IT>
Auto Trait Implementations§
impl<'f, T> Freeze for LegacyBatchValuesFirstSerialized<'f, T>where
T: Freeze,
impl<'f, T> RefUnwindSafe for LegacyBatchValuesFirstSerialized<'f, T>where
T: RefUnwindSafe,
impl<'f, T> Send for LegacyBatchValuesFirstSerialized<'f, T>where
T: Send,
impl<'f, T> Sync for LegacyBatchValuesFirstSerialized<'f, T>where
T: Sync,
impl<'f, T> Unpin for LegacyBatchValuesFirstSerialized<'f, T>where
T: Unpin,
impl<'f, T> UnwindSafe for LegacyBatchValuesFirstSerialized<'f, 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