DivansCompressorFactory

Trait DivansCompressorFactory 

Source
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§

Required Methods§

Source

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.

Implementors§

Source§

impl<AllocU8: Allocator<u8>, AllocU16: Allocator<u16>, AllocI32: Allocator<i32>, AllocCommand: Allocator<Command>, AllocU32: Allocator<u32>, AllocU64: Allocator<u64>, AllocCDF16: Allocator<DefaultCDF16>, AllocF64: Allocator<floatX>, AllocFV: Allocator<Mem256f>, AllocPDF: Allocator<PDF>, AllocStaticCommand: Allocator<StaticCommand>, AllocHL: Allocator<HistogramLiteral>, AllocHC: Allocator<HistogramCommand>, AllocHD: Allocator<HistogramDistance>, AllocHP: Allocator<HistogramPair>, AllocCT: Allocator<ContextType>, AllocHT: Allocator<HuffmanTree>, AllocZN: Allocator<ZopfliNode>> DivansCompressorFactory<AllocU8, AllocU32, AllocCDF16> for BrotliDivansHybridCompressorFactory<AllocU8, AllocU16, AllocU32, AllocI32, AllocU64, AllocCommand, AllocCDF16, AllocF64, AllocFV, AllocPDF, AllocStaticCommand, AllocHL, AllocHC, AllocHD, AllocHP, AllocCT, AllocHT, AllocZN>

Source§

type DefaultEncoder = ANSEncoder<AllocU8>

Source§

type ConstructedCompressor = BrotliDivansHybridCompressor<OptFrequentistCDF16, <BrotliDivansHybridCompressorFactory<AllocU8, AllocU16, AllocU32, AllocI32, AllocU64, AllocCommand, AllocCDF16, AllocF64, AllocFV, AllocPDF, AllocStaticCommand, AllocHL, AllocHC, AllocHD, AllocHP, AllocCT, AllocHT, AllocZN> as DivansCompressorFactory<AllocU8, AllocU32, AllocCDF16>>::DefaultEncoder, AllocU8, AllocU16, AllocU32, AllocI32, AllocU64, AllocCommand, AllocCDF16, AllocF64, AllocFV, AllocPDF, AllocStaticCommand, AllocHL, AllocHC, AllocHD, AllocHP, AllocCT, AllocHT, AllocZN>

Source§

type AdditionalArgs = (AllocU8, AllocU16, AllocI32, AllocCommand, AllocU64, AllocF64, AllocFV, AllocHL, AllocHC, AllocHD, AllocHP, AllocCT, AllocHT, AllocZN, AllocPDF, AllocStaticCommand)

Source§

impl<AllocU8: Allocator<u8>, AllocU32: Allocator<u32>, AllocCDF16: Allocator<DefaultCDF16>> DivansCompressorFactory<AllocU8, AllocU32, AllocCDF16> for DivansCompressorFactoryStruct<AllocU8, AllocCDF16>

Source§

type DefaultEncoder = ANSEncoder<AllocU8>

Source§

type ConstructedCompressor = DivansCompressor<<DivansCompressorFactoryStruct<AllocU8, AllocCDF16> as DivansCompressorFactory<AllocU8, AllocU32, AllocCDF16>>::DefaultEncoder, AllocU8, AllocU32, AllocCDF16>

Source§

type AdditionalArgs = ()