Struct nannou::draw::State [−][src]
pub struct State { /* fields omitted */ }
Expand description
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
Auto Trait Implementations
impl !RefUnwindSafe for State
impl !UnwindSafe for State
Blanket Implementations
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
Swp: WhitePoint,
Dwp: WhitePoint,
D: AdaptFrom<S, Swp, Dwp, T>,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
Swp: WhitePoint,
Dwp: WhitePoint,
D: AdaptFrom<S, Swp, Dwp, T>,
Mutably borrows from an owned value. Read more
Convert into T with values clamped to the color defined bounds Read more
Convert into T. The resulting color might be invalid in its color space Read more
Convert into T, returning ok if the color is inside of its defined range,
otherwise an OutOfBounds
error is returned which contains the unclamped color. Read more