pub struct Layered { /* private fields */ }
Expand description
A list of object on top of each other
Implementations
Trait Implementations
sourceimpl Drawable for Layered
impl Drawable for Layered
sourcefn content_mut(&mut self) -> Vec<&mut dyn Drawable>
fn content_mut(&mut self) -> Vec<&mut dyn Drawable>
What this object contains, mutably
sourcefn draw(&self, canvas: &mut Canvas<Window>, pos: &Position, settings: DrawSettings)
fn draw(&self, canvas: &mut Canvas<Window>, pos: &Position, settings: DrawSettings)
Draw everything
sourcefn step(&mut self)
fn step(&mut self)
When the user presses space, the state of the presentation is advanced. This
method is what is called. Read more
Auto Trait Implementations
impl !RefUnwindSafe for Layered
impl Send for Layered
impl !Sync for Layered
impl Unpin for Layered
impl !UnwindSafe for Layered
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more