pub struct CapacityContainerBuilder<C> { /* private fields */ }
Expand description
A default container builder that uses length and preferred capacity to chunk data.
Maintains FIFO order.
Trait Implementations§
source§impl<C: Container> ContainerBuilder for CapacityContainerBuilder<C>
impl<C: Container> ContainerBuilder for CapacityContainerBuilder<C>
source§fn push<T: PushInto<Self::Container>>(&mut self, item: T)where
C: PushContainer,
fn push<T: PushInto<Self::Container>>(&mut self, item: T)where
C: PushContainer,
Add an item to a container.
source§fn push_container(&mut self, container: &mut Self::Container)
fn push_container(&mut self, container: &mut Self::Container)
Push a pre-built container.
source§impl<C: Debug> Debug for CapacityContainerBuilder<C>
impl<C: Debug> Debug for CapacityContainerBuilder<C>
source§impl<C: Default> Default for CapacityContainerBuilder<C>
impl<C: Default> Default for CapacityContainerBuilder<C>
source§fn default() -> CapacityContainerBuilder<C>
fn default() -> CapacityContainerBuilder<C>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<C> Freeze for CapacityContainerBuilder<C>where
C: Freeze,
impl<C> RefUnwindSafe for CapacityContainerBuilder<C>where
C: RefUnwindSafe,
impl<C> Send for CapacityContainerBuilder<C>where
C: Send,
impl<C> Sync for CapacityContainerBuilder<C>where
C: Sync,
impl<C> Unpin for CapacityContainerBuilder<C>where
C: Unpin,
impl<C> UnwindSafe for CapacityContainerBuilder<C>where
C: 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<R, O, T> CopyOnto<ConsecutiveOffsetPairs<R, O>> for T
impl<R, O, T> CopyOnto<ConsecutiveOffsetPairs<R, O>> for T
source§fn copy_onto(
self,
target: &mut ConsecutiveOffsetPairs<R, O>
) -> <ConsecutiveOffsetPairs<R, O> as Region>::Index
fn copy_onto( self, target: &mut ConsecutiveOffsetPairs<R, O> ) -> <ConsecutiveOffsetPairs<R, O> as Region>::Index
Copy self into the target container, returning an index that allows to
look up the corresponding read item.