Struct ytesrev::scene::DrawableWrapper
source · pub struct DrawableWrapper<T: Drawable>(pub T);
Expand description
Tuple Fields
0: T
Trait Implementations
sourceimpl<T: Drawable> Scene for DrawableWrapper<T>
impl<T: Drawable> Scene for DrawableWrapper<T>
sourcefn draw(&self, canvas: &mut Canvas<Window>, settings: DrawSettings)
fn draw(&self, canvas: &mut Canvas<Window>, settings: DrawSettings)
Draw the content of this scene to a
Canvas
.sourcefn register(&mut self)
fn register(&mut self)
Register everything. The scene equivalent of
Drawable::register
Read moresourcefn load(&mut self)
fn load(&mut self)
Load everything. The scene equivalent of
Drawable::load
Read moreAuto Trait Implementations
impl<T> RefUnwindSafe for DrawableWrapper<T>where
T: RefUnwindSafe,
impl<T> Send for DrawableWrapper<T>
impl<T> Sync for DrawableWrapper<T>where
T: Sync,
impl<T> Unpin for DrawableWrapper<T>where
T: Unpin,
impl<T> UnwindSafe for DrawableWrapper<T>where
T: UnwindSafe,
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