pub trait Stackable: Drawable + KnownSize {
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
pub trait Stackable: Drawable + KnownSize {
fn as_drawable(&self) -> &dyn Drawable;
fn as_drawable_mut(&mut self) -> &mut dyn Drawable;
}
Represent an object that can be in a stack