[][src]Struct shine_stdext::time::ScaledBlender

pub struct ScaledBlender<S = ()> where
    S: BlendScale
{ /* fields omitted */ }

Helper to blend by elapsed time.

Methods

impl<S> ScaledBlender<S> where
    S: BlendScale
[src]

pub fn new(prev: f32, cur: f32, scale: S) -> ScaledBlender<S>[src]

pub fn get_start_end_weight(&self) -> (f32, f32)[src]

pub fn get_prev_end_weight(&self) -> (f32, f32)[src]

pub fn blend_start_end<T, F: FnMut(f32, f32) -> T>(&self, blend: F) -> T[src]

pub fn blend_prev_end<T, F: FnMut(f32, f32) -> T>(&self, blend: F) -> T[src]

Auto Trait Implementations

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

impl<S> Sync for ScaledBlender<S> where
    S: Sync

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

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