Trait cushy::animation::BoxAnimate

source ·
pub trait BoxAnimate {
    // Required method
    fn boxed(self) -> Box<dyn Animate>;
}
Expand description

A type that can convert into Box<dyn Animate>.

Required Methods§

source

fn boxed(self) -> Box<dyn Animate>

Returns the boxed animation.

Implementors§

source§

impl<T> BoxAnimate for T
where T: IntoAnimate + 'static,