Trait PalletedContainerKind

Source
pub trait PalletedContainerKind:
    Copy
    + Clone
    + Debug
    + Default
    + TryFrom<u32>
    + Into<u32> {
    type SectionPos: SectionPos;

    // Required methods
    fn size_bits() -> usize;
    fn bits_per_entry_to_palette_kind(bits_per_entry: u8) -> PaletteKind;

    // Provided method
    fn size() -> usize { ... }
}

Required Associated Types§

Required Methods§

Provided Methods§

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 PalletedContainerKind for BlockState

Source§

impl PalletedContainerKind for Biome

Implementors§