Closed haselkern closed 4 years ago
Float
is a part of the num_traits
crate. Could you try this?
impl CanTween for MyType {
fn ease(from: Self, to: Self, time: impl keyframe::num_traits::Float) -> Self {
unimplemented!()
}
}
That works perfectly, thank you!
I'm trying to implement CanTween manually for a type that does not work with the derive macro.
The
keyframe::Float
trait is private however, making it impossible to implement it like that.How could I implement CanTween for MyType?