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_slice(&mut self, slice: &[Vec<B>])
fn copy_slice(&mut self, slice: &[Vec<B>])
Extends from a slice of items.
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