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§
Required Methods§
sourcefn image_key(&self, source: &C) -> Option<(Self::ImageKey, Option<Color>)>
fn image_key(&self, source: &C) -> Option<(Self::ImageKey, Option<Color>)>
Returns an Option since the slot could be empty
fn amount(&self, source: &C) -> Option<u32>
fn image_ids(key: &Self::ImageKey, source: &I) -> Vec<Id>
Object Safety§
This trait is not object safe.