Trait veloren_voxygen::ui::slot::SlotKey

source ·
pub trait SlotKey<C, I>: Copy {
    type ImageKey: PartialEq + Send + 'static;

    // Required methods
    fn image_key(&self, source: &C) -> Option<(Self::ImageKey, Option<Color>)>;
    fn amount(&self, source: &C) -> Option<u32>;
    fn image_ids(key: &Self::ImageKey, source: &I) -> Vec<Id>;
}

Required Associated Types§

source

type ImageKey: PartialEq + Send + 'static

Required Methods§

source

fn image_key(&self, source: &C) -> Option<(Self::ImageKey, Option<Color>)>

Returns an Option since the slot could be empty

source

fn amount(&self, source: &C) -> Option<u32>

source

fn image_ids(key: &Self::ImageKey, source: &I) -> Vec<Id>

Object Safety§

This trait is not object safe.

Implementors§