pub struct OrdKeyBuilder<L: Layout>where
    <L::Target as Update>::Key: Sized + Clone,{ /* private fields */ }
Expand description

A builder for creating layers from unsorted update tuples.

Trait Implementations§

source§

impl<L: Layout> Builder for OrdKeyBuilder<L>where <L::Target as Update>::Key: Sized + Clone, OrdKeyBatch<L>: Batch<Key = <L::Target as Update>::Key, Val = (), Time = <L::Target as Update>::Time, Diff = <L::Target as Update>::Diff>,

§

type Item = ((<<L as Layout>::Target as Update>::Key, ()), <<L as Layout>::Target as Update>::Time, <<L as Layout>::Target as Update>::Diff)

Input item type.
§

type Time = <<L as Layout>::Target as Update>::Time

Timestamp type.
§

type Output = OrdKeyBatch<L>

Output batch type.
source§

fn with_capacity(_keys: usize, _vals: usize, upds: usize) -> Self

Allocates an empty builder with capacity for the specified keys, values, and updates. Read more
source§

fn push(&mut self, ((key, _), time, diff): Self::Item)

Adds an element to the batch. Read more
source§

fn copy(&mut self, ((key, _), time, diff): &Self::Item)

Adds an element to the batch.
source§

fn done( self, lower: Antichain<Self::Time>, upper: Antichain<Self::Time>, since: Antichain<Self::Time> ) -> OrdKeyBatch<L>

Completes building and returns the batch.
source§

fn new() -> Self

Allocates an empty builder. Read more
source§

fn extend<I: Iterator<Item = Self::Item>>(&mut self, iter: I)

Adds an ordered sequence of elements to the batch.

Auto Trait Implementations§

§

impl<L> RefUnwindSafe for OrdKeyBuilder<L>where <<L as Layout>::Target as Update>::Diff: RefUnwindSafe, <L as Layout>::KeyContainer: RefUnwindSafe, <L as Layout>::KeyOffset: RefUnwindSafe, <<L as Layout>::Target as Update>::Time: RefUnwindSafe,

§

impl<L> Send for OrdKeyBuilder<L>where <<L as Layout>::Target as Update>::Diff: Send, <L as Layout>::KeyContainer: Send, <L as Layout>::KeyOffset: Send,

§

impl<L> Sync for OrdKeyBuilder<L>where <<L as Layout>::Target as Update>::Diff: Sync, <L as Layout>::KeyContainer: Sync, <L as Layout>::KeyOffset: Sync,

§

impl<L> Unpin for OrdKeyBuilder<L>where <<L as Layout>::Target as Update>::Diff: Unpin, <L as Layout>::KeyContainer: Unpin, <L as Layout>::KeyOffset: Unpin, <<L as Layout>::Target as Update>::Time: Unpin,

§

impl<L> UnwindSafe for OrdKeyBuilder<L>where <<L as Layout>::Target as Update>::Diff: UnwindSafe, <L as Layout>::KeyContainer: UnwindSafe, <L as Layout>::KeyOffset: UnwindSafe, <<L as Layout>::Target as Update>::Time: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.