Collectable

Trait Collectable 

Source
pub trait Collectable: Sized {
    // Required methods
    fn name(&self) -> &str;
    fn typ(&self) -> CollectableType;
}
Expand description

An object which can be held in a player’s inventory.

Required Methods§

Source

fn name(&self) -> &str

Source

fn typ(&self) -> CollectableType

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.

Implementors§