struct KeyFrame has the requirement of the value type to be Copy.
pub fn value(&self) -> T where T: Copy { self.value }
It seems that the library is attempting to allow Vec types as a value type, and Vec does not implement Copy, but it does implement Clone, so the where T: Copy should be changed to where T: Clone. There are a few places where an explicit .clone() call must be made to make this change work, but would allow Vec to be used.
struct KeyFrame
has the requirement of thevalue
type to beCopy
.It seems that the library is attempting to allow
Vec
types as avalue
type, andVec
does not implementCopy
, but it does implementClone
, so thewhere T: Copy
should be changed towhere T: Clone
. There are a few places where an explicit.clone()
call must be made to make this change work, but would allow Vec to be used.