pub trait InterpolatableComponent: Component {
    type InterpData: Component;
    type ReadData;

    // Required methods
    fn new_data(x: Self) -> Self::InterpData;
    fn update_component(
        &self,
        data: &mut Self::InterpData,
        time: f64,
        force_update: bool,
    );
    fn interpolate(
        self,
        data: &Self::InterpData,
        time: f64,
        read_data: &Self::ReadData,
    ) -> Self;
}

Required Associated Types§

source

type InterpData: Component

source

type ReadData

Required Methods§

source

fn new_data(x: Self) -> Self::InterpData

source

fn update_component( &self, data: &mut Self::InterpData, time: f64, force_update: bool, )

source

fn interpolate( self, data: &Self::InterpData, time: f64, read_data: &Self::ReadData, ) -> Self

Object Safety§

This trait is not object safe.

Implementors§