pub struct Timeline {
pub tracks: HashMap<String, TrackVariant>,
}Fields§
§tracks: HashMap<String, TrackVariant>Implementations§
Source§impl Timeline
impl Timeline
pub fn new() -> Timeline
pub fn add<T>(&mut self, name: &str, track: T)where
T: Into<TrackVariant>,
pub fn get<'a, T>(&'a self, name: &str) -> Option<&'a T>
pub fn get_mut<'a, T>(&'a mut self, name: &str) -> Option<&'a mut T>
pub fn get_value(&self, name: &str, time: Duration) -> TrackValue
Sourcepub fn get_max_duration(&self) -> Duration
pub fn get_max_duration(&self) -> Duration
returns max duration of all tracks
Trait Implementations§
Source§impl TimelineJsonLoader for Timeline
impl TimelineJsonLoader for Timeline
Auto Trait Implementations§
impl Freeze for Timeline
impl RefUnwindSafe for Timeline
impl Send for Timeline
impl Sync for Timeline
impl Unpin for Timeline
impl UnwindSafe for Timeline
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