pub struct MetadataTimeline { /* private fields */ }Expand description
A timeline of metadata entries keyed by frame number.
Implementations§
Source§impl MetadataTimeline
impl MetadataTimeline
Sourcepub fn insert(&mut self, frame: u64, meta: TcMetadata)
pub fn insert(&mut self, frame: u64, meta: TcMetadata)
Adds a metadata entry at the given frame.
Sourcepub fn lookup(&self, frame: u64) -> Option<&TcMetadata>
pub fn lookup(&self, frame: u64) -> Option<&TcMetadata>
Finds the metadata entry at or before the given frame.
Sourcepub fn entries(&self) -> &[(u64, TcMetadata)]
pub fn entries(&self) -> &[(u64, TcMetadata)]
Returns all entries as a slice.
Trait Implementations§
Source§impl Clone for MetadataTimeline
impl Clone for MetadataTimeline
Source§fn clone(&self) -> MetadataTimeline
fn clone(&self) -> MetadataTimeline
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MetadataTimeline
impl Debug for MetadataTimeline
Auto Trait Implementations§
impl Freeze for MetadataTimeline
impl RefUnwindSafe for MetadataTimeline
impl Send for MetadataTimeline
impl Sync for MetadataTimeline
impl Unpin for MetadataTimeline
impl UnsafeUnpin for MetadataTimeline
impl UnwindSafe for MetadataTimeline
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