Struct nannou::draw::State
[−]
[src]
pub struct State<S = DefaultScalar> where
S: BaseFloat, { /* fields omitted */ }
The inner state of the Draw type.
The Draw type stores its State behind a RefCell - a type used for moving mutability
checks from compile time to runtime. We do this in order to avoid requiring a mut
handle to a
draw
. The primary purpose of a Draw is to be an easy-as-possible, high-level API for
drawing stuff. In order to be friendlier to new users, we want to avoid requiring them to think
about mutability and instead focus on creativity. Rust-lang nuances can come later.
Trait Implementations
impl<S: Clone> Clone for State<S> where
S: BaseFloat,
[src]
S: BaseFloat,
fn clone(&self) -> State<S>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<S: Debug> Debug for State<S> where
S: BaseFloat,
[src]
S: BaseFloat,
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<S> Default for State<S> where
S: BaseFloat,
[src]
S: BaseFloat,