Trait game_features::SlotType[][src]

pub trait SlotType {
    fn can_insert_into(&self, item_type: &Self) -> bool;
}
Expand description

A trait defining which items can be inserted into each inventory slot type.

Required methods

fn can_insert_into(&self, item_type: &Self) -> bool[src]

Checks if the provided item type can be inserted in this slot type.

Implementations on Foreign Types

impl SlotType for ()[src]

fn can_insert_into(&self, _: &Self) -> bool[src]

Implementors