Trait VoxelImageDecoding

Source
pub trait VoxelImageDecoding: VoxelImageEncoding {
    // Required methods
    fn start(ws: &Self::Output) -> Option<Self::Workspace>;
    fn get_block(ws: &Self::Workspace, x: u32, y: u32, is_border: bool) -> Block;
}

Required Methods§

Source

fn start(ws: &Self::Output) -> Option<Self::Workspace>

Source

fn get_block(ws: &Self::Workspace, x: u32, y: u32, is_border: bool) -> Block

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.

Implementations on Foreign Types§

Source§

impl<VIE: VoxelImageDecoding> VoxelImageDecoding for &VIE

Source§

fn start(ws: &Self::Output) -> Option<Self::Workspace>

Source§

fn get_block(ws: &Self::Workspace, x: u32, y: u32, is_border: bool) -> Block

Implementors§

Source§

impl<const AVERAGE_PALETTE: bool> VoxelImageDecoding for TriPngEncoding<AVERAGE_PALETTE>

Source§

impl<const N: u32> VoxelImageDecoding for QuadPngEncoding<N>