Trait InterpolatableComponent

Source
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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§