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>
Source§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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)