pub struct TimecodeRange {
pub start: Timecode,
pub end: Timecode,
}Expand description
Timecode range representing a continuous segment.
Fields§
§start: TimecodeStart of the range.
end: TimecodeEnd of the range (inclusive).
Implementations§
Source§impl TimecodeRange
impl TimecodeRange
Sourcepub fn duration_frames(&self) -> u64
pub fn duration_frames(&self) -> u64
Get the duration in frames.
Sourcepub fn overlaps(&self, other: &TimecodeRange) -> bool
pub fn overlaps(&self, other: &TimecodeRange) -> bool
Check if two ranges overlap.
Trait Implementations§
Source§impl Clone for TimecodeRange
impl Clone for TimecodeRange
Source§fn clone(&self) -> TimecodeRange
fn clone(&self) -> TimecodeRange
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 TimecodeRange
impl Debug for TimecodeRange
Source§impl PartialEq for TimecodeRange
impl PartialEq for TimecodeRange
impl Eq for TimecodeRange
impl StructuralPartialEq for TimecodeRange
Auto Trait Implementations§
impl Freeze for TimecodeRange
impl RefUnwindSafe for TimecodeRange
impl Send for TimecodeRange
impl Sync for TimecodeRange
impl Unpin for TimecodeRange
impl UnsafeUnpin for TimecodeRange
impl UnwindSafe for TimecodeRange
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