pub trait CurveContentBuilder: Default + Sized + 'static {
    type Target: CurveContent + Send + Sync;

    // Required methods
    fn push_keyframe(
        &mut self,
        x: <Self::Target as CurveContentStatic>::Keyframe
    );
    fn finish(self) -> Self::Target;
}
Expand description

Builder for track contents (keyframes). Only intended for internal use and as an extension point.

Required Associated Types§

source

type Target: CurveContent + Send + Sync

Target type to build, a CurveContent.

Required Methods§

source

fn push_keyframe(&mut self, x: <Self::Target as CurveContentStatic>::Keyframe)

Push one keyframe to this builder.

source

fn finish(self) -> Self::Target

Finish building this track content.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T, O> CurveContentBuilder for BitVec<T, O>
where T: BitStore + Send + Sync + 'static, O: BitOrder + Send + Sync + 'static,

§

type Target = BitBox<T, O>

source§

fn push_keyframe(&mut self, x: bool)

source§

fn finish(self) -> Self::Target

source§

impl<T: Send + Sync + 'static> CurveContentBuilder for Vec<T>

§

type Target = Box<[T]>

source§

fn push_keyframe(&mut self, x: T)

source§

fn finish(self) -> Box<[T]>

Implementors§