Trait mina::TimelineBuilder

source ·
pub trait TimelineBuilder<T>where
    T: Timeline,{
    // Required method
    fn build(self) -> T;
}
Expand description

Trait for a builder that creates typed Timeline instances.

This is meant to be implemented for the specific TimelineConfiguration whose generic argument is the Keyframe data on which the T timeline type is based. It is a generic trait, rather than an associated trait, so that code in external crates can implement for the TimelineConfiguration which is owned by this crate. Note that the Animate macro handles this generation automatically.

Required Methods§

source

fn build(self) -> T

Builds a timeline, consuming the builder in the process.

Implementors§