[−][src]Struct rocket_sync::SyncTrack
Fields
keys: SmallVec<[TrackKey; 64]>
key frames, rows where values change
Methods
impl SyncTrack
[src]
pub fn new() -> SyncTrack
[src]
pub fn add_key(&mut self, track_key: TrackKey)
[src]
Adds a key to the track, inserting sorted by row, replacing if one already exists on that row
pub fn delete_key(&mut self, row: u32)
[src]
Deletes the key found on the given row
pub fn find_key_idx_by_row(&self, row: u32) -> Option<usize>
[src]
Returns index of the key with the given row, or None
pub fn value_at(&self, row: u32) -> f64
[src]
pub fn find_active_key_idx_for_row(&self, row: u32) -> Option<ActiveKeyIdx>
[src]
Find the active key idx for a row
Auto Trait Implementations
Blanket Implementations
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,