pub struct SyncTrack {
pub keys: SmallVec<[TrackKey; 64]>,
}
Fields§
§keys: SmallVec<[TrackKey; 64]>
key frames, rows where values change
Implementations§
Source§impl SyncTrack
impl SyncTrack
pub fn new() -> SyncTrack
Sourcepub fn add_key(&mut self, track_key: TrackKey)
pub fn add_key(&mut self, track_key: TrackKey)
Adds a key to the track, inserting sorted by row, replacing if one already exists on that row
Sourcepub fn delete_key(&mut self, row: u32)
pub fn delete_key(&mut self, row: u32)
Deletes the key found on the given row
Sourcepub fn find_key_idx_by_row(&self, row: u32) -> Option<usize>
pub fn find_key_idx_by_row(&self, row: u32) -> Option<usize>
Returns index of the key with the given row, or None
pub fn value_at(&self, row: u32) -> f64
Sourcepub fn find_active_key_idx_for_row(&self, row: u32) -> Option<ActiveKeyIdx>
pub fn find_active_key_idx_for_row(&self, row: u32) -> Option<ActiveKeyIdx>
Find the active key idx for a row
Auto Trait Implementations§
impl Freeze for SyncTrack
impl RefUnwindSafe for SyncTrack
impl Send for SyncTrack
impl Sync for SyncTrack
impl Unpin for SyncTrack
impl UnwindSafe for SyncTrack
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more