pub enum CoderType {
AC,
RANS,
}Expand description
Entropy coder type for compression.
Both coders are lossless and produce equivalent results; the choice affects compression speed and ratio.
Variants§
AC
Arithmetic coding: optimal compression ratio, slightly slower. Recommended for small files or when compression ratio is critical.
RANS
rANS coding: near-optimal compression with better throughput. Recommended for larger files where speed matters more.
Trait Implementations§
impl Copy for CoderType
impl Eq for CoderType
impl StructuralPartialEq for CoderType
Auto Trait Implementations§
impl Freeze for CoderType
impl RefUnwindSafe for CoderType
impl Send for CoderType
impl Sync for CoderType
impl Unpin for CoderType
impl UnwindSafe for CoderType
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> 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