pub struct DrawableWrapper<T: Drawable>(pub T);
Expand description

A wrapper to make a Drawable into a Scene. This is probably all you will need in terms of scenes, there’s really not much else you can do with one.

Tuple Fields

0: T

Trait Implementations

Do a tick
Draw the content of this scene to a Canvas.
Called when an event occured
What to do
Register everything. The scene equivalent of Drawable::register Read more
Load everything. The scene equivalent of Drawable::load Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.