pub trait TimelineValue {
// Required methods
fn shift(&mut self, delta: i64);
fn keep_window(&mut self, window: (i64, i64));
fn via_clips(&self, visit: &mut dyn FnMut(&ClipId));
fn via_clips_mut(&mut self, visit: &mut dyn FnMut(&mut ClipId));
}Expand description
A value whose keyframes are in timeline time.
Required Methods§
Sourcefn keep_window(&mut self, window: (i64, i64))
fn keep_window(&mut self, window: (i64, i64))
Keeps the keyframes that decide values inside window (ticks, end exclusive): those
inside it and the nearest one on each side, or all of them when the window reaches past
an end the value does not hold at.
Sourcefn via_clips(&self, visit: &mut dyn FnMut(&ClipId))
fn via_clips(&self, visit: &mut dyn FnMut(&ClipId))
Calls visit with each clip a data binding of the value reads through: the value’s own
binding, or those of its split channels.
Sourcefn via_clips_mut(&mut self, visit: &mut dyn FnMut(&mut ClipId))
fn via_clips_mut(&mut self, visit: &mut dyn FnMut(&mut ClipId))
Self::via_clips, to point them at other clips.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".