Struct nannou::draw::State[][src]

pub struct State<S = Default> 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]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<S: Debug> Debug for State<S> where
    S: BaseFloat
[src]

Formats the value using the given formatter. Read more

impl<S> Default for State<S> where
    S: BaseFloat
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl<S> Send for State<S> where
    S: Send

impl<S = f32> !Sync for State<S>