Struct timely::container::CapacityContainerBuilder
source · pub struct CapacityContainerBuilder<C> { /* private fields */ }
Expand description
A default container builder that uses length and preferred capacity to chunk data.
Maintains a single empty allocation between Self::push_into
and Self::extract
, but not
across Self::finish
to maintain a low memory footprint.
Maintains FIFO order.
Implementations§
source§impl<C> CapacityContainerBuilder<C>where
C: Container,
impl<C> CapacityContainerBuilder<C>where
C: Container,
sourcepub fn push_container(&mut self, container: &mut C)
pub fn push_container(&mut self, container: &mut C)
Push a pre-formed container at this builder. This exists to maintain API compatibility.
Trait Implementations§
source§impl<C> ContainerBuilder for CapacityContainerBuilder<C>where
C: Container,
impl<C> ContainerBuilder for CapacityContainerBuilder<C>where
C: Container,
source§impl<C> Debug for CapacityContainerBuilder<C>where
C: Debug,
impl<C> Debug for CapacityContainerBuilder<C>where
C: Debug,
source§impl<C> Default for CapacityContainerBuilder<C>where
C: Default,
impl<C> Default for CapacityContainerBuilder<C>where
C: Default,
source§fn default() -> CapacityContainerBuilder<C>
fn default() -> CapacityContainerBuilder<C>
Returns the “default value” for a type. Read more
source§impl<T, C> PushInto<T> for CapacityContainerBuilder<C>where
C: SizableContainer + PushInto<T>,
impl<T, C> PushInto<T> for CapacityContainerBuilder<C>where
C: SizableContainer + PushInto<T>,
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