[][src]Struct valora::Context

pub struct Context<'a> {
    pub rng: &'a mut StdRng,
    pub world: World,
    pub frame: usize,
    pub time: Duration,

The context of the current render frame.


rng: &'a mut StdRng

A random number generator. This is shared between frames.

To branch the rng, keep a clone.

world: World

The world in which painting takes place.

frame: usize

The current frame in the composition.

time: Duration

The elapsed time in the composition.

Trait Implementations

impl<'a> Debug for Context<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Context<'a>

impl<'a> Send for Context<'a>

impl<'a> Sync for Context<'a>

impl<'a> Unpin for Context<'a>

impl<'a> !UnwindSafe for Context<'a>

Blanket Implementations

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    D: AdaptFrom<S, Swp, Dwp, T>,
    Dwp: WhitePoint,
    Swp: WhitePoint,
    T: Component + Float

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T, U> ConvertInto<U> for T where
    U: ConvertFrom<T>, 

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SetParameter for T

impl<T> SetParameter for T

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,