Skip to main content

Kind

Trait Kind 

Source
pub trait Kind {
    const NAME: &'static str;
}
Expand description

A kind of content: item, block, … — a mod declares its own with kind!.

Required Associated Constants§

Source

const NAME: &'static str

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl Kind for Biome

Source§

const NAME: &'static str = "biome"

Source§

impl Kind for Block

Source§

const NAME: &'static str = "block"

Source§

impl Kind for Category

Source§

const NAME: &'static str = "category"

Source§

impl Kind for Dimension

Source§

const NAME: &'static str = "dimension"

Source§

impl Kind for Entity

Source§

const NAME: &'static str = "entity"

Source§

impl Kind for Entry

Source§

const NAME: &'static str = "entry"

Source§

impl Kind for Fluid

Source§

const NAME: &'static str = "fluid"

Source§

impl Kind for Item

Source§

const NAME: &'static str = "item"

Source§

impl Kind for Recipe

Source§

const NAME: &'static str = "recipe"