pub struct FallbackWSetBuilder<K, R>{ /* private fields */ }Expand description
A builder for batches from ordered update tuples.
Trait Implementations§
Source§impl<K, R> Builder<FallbackWSet<K, R>> for FallbackWSetBuilder<K, R>
impl<K, R> Builder<FallbackWSet<K, R>> for FallbackWSetBuilder<K, R>
Source§fn with_capacity(
factories: &FallbackWSetFactories<K, R>,
key_capacity: usize,
_value_capacity: usize,
) -> Self
fn with_capacity( factories: &FallbackWSetFactories<K, R>, key_capacity: usize, _value_capacity: usize, ) -> Self
Creates an empty builder with estimated capacities for keys and
key-value pairs. Only
tuple_capacity >= key_capacity makes sense but
implementations must tolerate contradictory capacity requests.Source§fn for_merge<'a, B, I>(
factories: &FallbackWSetFactories<K, R>,
batches: I,
location: Option<BatchLocation>,
) -> Self
fn for_merge<'a, B, I>( factories: &FallbackWSetFactories<K, R>, batches: I, location: Option<BatchLocation>, ) -> Self
Creates an empty builder to hold the result of merging
batches. Optionally, location can specify the preferred location for
the result of the merge.Source§fn push_time_diff(&mut self, time: &(), weight: &R)
fn push_time_diff(&mut self, time: &(), weight: &R)
Adds time-diff pair
(time, weight).Source§fn push_time_diff_mut(&mut self, time: &mut (), weight: &mut R)
fn push_time_diff_mut(&mut self, time: &mut (), weight: &mut R)
Adds time-diff pair
(time, weight).Source§fn push_val_mut(&mut self, val: &mut DynUnit)
fn push_val_mut(&mut self, val: &mut DynUnit)
Adds value
val.Source§fn push_key_mut(&mut self, key: &mut K)
fn push_key_mut(&mut self, key: &mut K)
Adds key
key.Source§fn push_val_diff(&mut self, val: &DynUnit, weight: &R)
fn push_val_diff(&mut self, val: &DynUnit, weight: &R)
Adds time-diff pair
(), weight and value val.Source§fn push_val_diff_mut(&mut self, val: &mut DynUnit, weight: &mut R)
fn push_val_diff_mut(&mut self, val: &mut DynUnit, weight: &mut R)
Adds time-diff pair
(), weight and value val.Source§fn done(self) -> FallbackWSet<K, R>
fn done(self) -> FallbackWSet<K, R>
Completes building and returns the batch.
fn num_keys(&self) -> usize
fn num_tuples(&self) -> usize
Source§fn new_builder(factories: &Output::Factories) -> Self
fn new_builder(factories: &Output::Factories) -> Self
Creates a new builder with an initial capacity of 0.
Source§impl<K, R> SizeOf for FallbackWSetBuilder<K, R>
impl<K, R> SizeOf for FallbackWSetBuilder<K, R>
Source§fn size_of_children(&self, context: &mut Context)
fn size_of_children(&self, context: &mut Context)
Gets the size of all “children” owned by this value, not including the
size of the value itself. Read more
Source§fn size_of_with_context(&self, context: &mut Context)
fn size_of_with_context(&self, context: &mut Context)
Adds the size of the current value to the given
Context,
including both the size of the value itself and all of its childrenAuto Trait Implementations§
impl<K, R> !Freeze for FallbackWSetBuilder<K, R>
impl<K, R> !RefUnwindSafe for FallbackWSetBuilder<K, R>
impl<K, R> Send for FallbackWSetBuilder<K, R>
impl<K, R> Sync for FallbackWSetBuilder<K, R>
impl<K, R> Unpin for FallbackWSetBuilder<K, R>
impl<K, R> UnsafeUnpin for FallbackWSetBuilder<K, R>
impl<K, R> !UnwindSafe for FallbackWSetBuilder<K, R>
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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 moreSource§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.