pub struct CompressionTable<const COMP_N: usize> { /* private fields */ }Expand description
Bounded compression table — stores (name-bytes-hash, offset-in-message) pairs as back-references. Hashes (instead of names) so we can run no_alloc.
Implementations§
Source§impl<const COMP_N: usize> CompressionTable<COMP_N>
impl<const COMP_N: usize> CompressionTable<COMP_N>
Sourcepub const fn new() -> CompressionTable<COMP_N>
pub const fn new() -> CompressionTable<COMP_N>
Empty compression table.
Trait Implementations§
Source§impl<const COMP_N: usize> Clone for CompressionTable<COMP_N>
impl<const COMP_N: usize> Clone for CompressionTable<COMP_N>
Source§fn clone(&self) -> CompressionTable<COMP_N>
fn clone(&self) -> CompressionTable<COMP_N>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<const COMP_N: usize> Copy for CompressionTable<COMP_N>
Source§impl<const COMP_N: usize> Debug for CompressionTable<COMP_N>
impl<const COMP_N: usize> Debug for CompressionTable<COMP_N>
Source§impl<const COMP_N: usize> Default for CompressionTable<COMP_N>
impl<const COMP_N: usize> Default for CompressionTable<COMP_N>
Source§fn default() -> CompressionTable<COMP_N>
fn default() -> CompressionTable<COMP_N>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<const COMP_N: usize> Freeze for CompressionTable<COMP_N>
impl<const COMP_N: usize> RefUnwindSafe for CompressionTable<COMP_N>
impl<const COMP_N: usize> Send for CompressionTable<COMP_N>
impl<const COMP_N: usize> Sync for CompressionTable<COMP_N>
impl<const COMP_N: usize> Unpin for CompressionTable<COMP_N>
impl<const COMP_N: usize> UnsafeUnpin for CompressionTable<COMP_N>
impl<const COMP_N: usize> UnwindSafe for CompressionTable<COMP_N>
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more