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 reborrow<'b, 'a: 'b>(item: Self::ReadItem<'a>) -> Self::ReadItem<'b>
fn reborrow<'b, 'a: 'b>(item: Self::ReadItem<'a>) -> Self::ReadItem<'b>
Converts a read item into one with a narrower lifetime.
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.
source§impl<B> Default for SliceContainer<B>
impl<B> Default for SliceContainer<B>
Default implementation introduces a first offset.
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<'a, S, T> Semigroup<&'a S> for Twhere
T: Semigroup<S>,
impl<'a, S, T> Semigroup<&'a S> for Twhere
T: Semigroup<S>,
source§fn plus_equals(&mut self, rhs: &&'a S)
fn plus_equals(&mut self, rhs: &&'a S)
The method of
std::ops::AddAssign
, for types that do not implement AddAssign
.