pub trait DivansCompressorFactory<AllocU8: Allocator<u8>, AllocU32: Allocator<u32>, AllocCDF16: Allocator<DefaultCDF16>> {
type DefaultEncoder: ArithmeticEncoderOrDecoder + NewWithAllocator<AllocU8>;
type ConstructedCompressor: Compressor;
type AdditionalArgs;
// Required method
fn new(
m8: AllocU8,
m32: AllocU32,
mcdf16: AllocCDF16,
opts: DivansCompressorOptions,
additional_args: Self::AdditionalArgs,
) -> Self::ConstructedCompressor;
}Required Associated Types§
type DefaultEncoder: ArithmeticEncoderOrDecoder + NewWithAllocator<AllocU8>
type ConstructedCompressor: Compressor
type AdditionalArgs
Required Methods§
fn new( m8: AllocU8, m32: AllocU32, mcdf16: AllocCDF16, opts: DivansCompressorOptions, additional_args: Self::AdditionalArgs, ) -> Self::ConstructedCompressor
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.