pub struct TimecodeRangeList { /* private fields */ }Expand description
A collection of TimecodeRange intervals.
Implementations§
Source§impl TimecodeRangeList
impl TimecodeRangeList
Sourcepub fn add(&mut self, range: TimecodeRange)
pub fn add(&mut self, range: TimecodeRange)
Append a range to the list.
Sourcepub fn total_frames(&self) -> u64
pub fn total_frames(&self) -> u64
Total frame count across all ranges.
Sourcepub fn merge_adjacent(&self) -> TimecodeRangeList
pub fn merge_adjacent(&self) -> TimecodeRangeList
Merge consecutive / overlapping ranges that are adjacent (end + 1 == next.start).
Sourcepub fn iter(&self) -> Iter<'_, TimecodeRange>
pub fn iter(&self) -> Iter<'_, TimecodeRange>
Iterate over the stored ranges.
Trait Implementations§
Source§impl Clone for TimecodeRangeList
impl Clone for TimecodeRangeList
Source§fn clone(&self) -> TimecodeRangeList
fn clone(&self) -> TimecodeRangeList
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 TimecodeRangeList
impl Debug for TimecodeRangeList
Source§impl Default for TimecodeRangeList
impl Default for TimecodeRangeList
Source§fn default() -> TimecodeRangeList
fn default() -> TimecodeRangeList
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TimecodeRangeList
impl RefUnwindSafe for TimecodeRangeList
impl Send for TimecodeRangeList
impl Sync for TimecodeRangeList
impl Unpin for TimecodeRangeList
impl UnsafeUnpin for TimecodeRangeList
impl UnwindSafe for TimecodeRangeList
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