Struct suzy::animation::eases::BuiltInEasingFunction[][src]

pub struct BuiltInEasingFunction { /* fields omitted */ }

A type which represents a built-in constant easing function.

The method get returns a boxed trait object for use with Animation::set_ease.

use suzy::animation::{Animation, eases};

let mut anim: Animation<f32> = Animation::new();
anim.set_ease(eases::EASE_LINEAR.get());

Implementations

impl BuiltInEasingFunction[src]

pub fn get(&self) -> Box<dyn Easing>[src]

Get a trait object representing this easing function.

Trait Implementations

impl Clone for BuiltInEasingFunction[src]

impl Copy for BuiltInEasingFunction[src]

impl Into<Box<dyn Easing + 'static, Global>> for BuiltInEasingFunction[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.