Struct nannou::draw::State [−][src]
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]
impl<S: Clone> Clone for State<S> where
S: BaseFloat,
fn clone(&self) -> State<S>
[src]
fn clone(&self) -> State<S>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
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]
impl<S: Debug> Debug for State<S> where
S: BaseFloat,
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<S> Default for State<S> where
S: BaseFloat,
[src]
impl<S> Default for State<S> where
S: BaseFloat,