pub struct Canvas { /* private fields */ }
Expand description
Calls run
but blocking instead of async.
Runs the main loop.
This function construct a Context
instance and
calls a make_loop
by passing the context in it.
The make_loop
needs to return an object which
implements the Loop
trait.
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 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.