Skip to main content

Unpack

Trait Unpack 

Source
pub trait Unpack {
    const TRUNK_SIZE: usize = 2;
    const COUNT_TILES: [usize; 8] = _;
    const TILES: [[usize; 4]; 8] = _;

    // Required method
    fn unpack(
        tables: &Tables,
        codec: &mut Codec<'_>,
        width: u16,
        height: u16,
        face: u8,
    ) -> Result<Vec<u8>, Error>;

    // Provided method
    fn next_tile_idx(
        codec: &mut Codec<'_>,
        encoding: &Huffman,
        tile_bits: &mut u32,
    ) -> Result<(usize, [usize; 4]), Error> { ... }
}

Provided Associated Constants§

Source

const TRUNK_SIZE: usize = 2

Source

const COUNT_TILES: [usize; 8] = _

Source

const TILES: [[usize; 4]; 8] = _

Required Methods§

Source

fn unpack( tables: &Tables, codec: &mut Codec<'_>, width: u16, height: u16, face: u8, ) -> Result<Vec<u8>, Error>

Provided Methods§

Source

fn next_tile_idx( codec: &mut Codec<'_>, encoding: &Huffman, tile_bits: &mut u32, ) -> Result<(usize, [usize; 4]), Error>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§