Skip to main content

Catalog

Trait Catalog 

Source
pub trait Catalog: Sized {
    // Required method
    fn catalog() -> Vec<Self>;
}
Expand description

Every value the engine proves it can build before the first frame.

derive(Catalog) writes this for a mesh type or a sound vocabulary. One that a game writes itself must return every value that reads from Assets.

Required Methods§

Source

fn catalog() -> Vec<Self>

Every value to build. A type with fields returns the values its #[catalog(...)] names, each written as a value of the type; one that writes this itself states them.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§