Skip to main content

IntoKeyframe

Trait IntoKeyframe 

Source
pub trait IntoKeyframe {
    // Required method
    fn into_keyframe(self) -> Keyframe;
}
Expand description

Anything that can stand in for a Keyframe in a list.

A list of legs is usually a list of destinations — [-30.0, 0.0] — and only sometimes a list of built keyframes with their own timings. Rust arrays are homogeneous either way, so one trait covers both without any wrapping at the call site.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl IntoKeyframe for Hsla

Source§

impl IntoKeyframe for Pixels

Source§

impl IntoKeyframe for Rgba

Source§

impl IntoKeyframe for f32

Source§

impl IntoKeyframe for f64

Source§

impl IntoKeyframe for i32

Implementors§