Trait Stackable

Source
pub trait Stackable: Drawable + KnownSize {
    // Required methods
    fn as_drawable(&self) -> &dyn Drawable;
    fn as_drawable_mut(&mut self) -> &mut dyn Drawable;
}
Expand description

Represent an object that can be in a stack

Required Methods§

Source

fn as_drawable(&self) -> &dyn Drawable

Source

fn as_drawable_mut(&mut self) -> &mut dyn Drawable

Implementors§