pub struct SliceContainer<B> { /* private fields */ }
Expand description
A container that accepts slices [B::Item]
.
Trait Implementations§
source§impl<B> BatchContainer for SliceContainer<B>
impl<B> BatchContainer for SliceContainer<B>
source§fn copy_range(&mut self, other: &Self, start: usize, end: usize)
fn copy_range(&mut self, other: &Self, start: usize, end: usize)
Extends from a range of items in another
Self
.source§fn with_capacity(size: usize) -> Self
fn with_capacity(size: usize) -> Self
Creates a new container with sufficient capacity.
source§fn merge_capacity(cont1: &Self, cont2: &Self) -> Self
fn merge_capacity(cont1: &Self, cont2: &Self) -> Self
Creates a new container with sufficient capacity.
source§fn index(&self, index: usize) -> Self::ReadItem<'_>
fn index(&self, index: usize) -> Self::ReadItem<'_>
Reference to the element at this position.
Auto Trait Implementations§
impl<B> Freeze for SliceContainer<B>
impl<B> RefUnwindSafe for SliceContainer<B>where
B: RefUnwindSafe,
impl<B> Send for SliceContainer<B>where
B: Send,
impl<B> Sync for SliceContainer<B>where
B: Sync,
impl<B> Unpin for SliceContainer<B>where
B: Unpin,
impl<B> UnwindSafe for SliceContainer<B>where
B: 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.