[][src]Struct rocket_sync::SyncTrack

pub struct SyncTrack {
    pub keys: SmallVec<[TrackKey; 64]>,
}

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

impl Send for SyncTrack

impl Sync for SyncTrack

Blanket Implementations

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]