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§
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
Object Safety§
This trait is not object safe.