pub struct HuffmanContainer<B: Ord + Clone> { /* private fields */ }
Expand description
A container that contains slices [B]
as items.
Implementations§
Trait Implementations§
source§impl<B> BatchContainer for HuffmanContainer<B>
impl<B> BatchContainer for HuffmanContainer<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 HuffmanContainer<B>where
B: Freeze,
impl<B> RefUnwindSafe for HuffmanContainer<B>where
B: RefUnwindSafe,
impl<B> Send for HuffmanContainer<B>where
B: Send,
impl<B> Sync for HuffmanContainer<B>where
B: Sync,
impl<B> Unpin for HuffmanContainer<B>where
B: Unpin,
impl<B> UnwindSafe for HuffmanContainer<B>where
B: RefUnwindSafe + 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.