Struct flatcontainer::impls::huffman_container::HuffmanContainer
source · pub struct HuffmanContainer<B: Ord + Clone> { /* private fields */ }
Expand description
A container that contains slices [B]
as items.
Implementations§
Trait Implementations§
source§impl<B> Push<&[B]> for HuffmanContainer<B>
impl<B> Push<&[B]> for HuffmanContainer<B>
source§impl<B> Push<&Vec<B>> for HuffmanContainer<B>
impl<B> Push<&Vec<B>> for HuffmanContainer<B>
source§impl<B> Push<Vec<B>> for HuffmanContainer<B>
impl<B> Push<Vec<B>> for HuffmanContainer<B>
source§impl<B> Region for HuffmanContainer<B>
impl<B> Region for HuffmanContainer<B>
§type Index = (usize, usize)
type Index = (usize, usize)
The type to index into the container. Should be treated
as an opaque type, even if known.
source§fn merge_regions<'a>(regions: impl Iterator<Item = &'a Self> + Clone) -> Selfwhere
Self: 'a,
fn merge_regions<'a>(regions: impl Iterator<Item = &'a Self> + Clone) -> Selfwhere
Self: 'a,
Construct a region that can absorb the contents of
regions
in the future.source§fn index(&self, (lower, upper): Self::Index) -> Self::ReadItem<'_>
fn index(&self, (lower, upper): Self::Index) -> Self::ReadItem<'_>
Index into the container. The index must be obtained by
pushing data into the container.
source§fn reserve_regions<'a, I>(&mut self, _regions: I)
fn reserve_regions<'a, I>(&mut self, _regions: I)
Ensure that the region can absorb the items of
regions
without reallocationAuto 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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)