pub struct TimeRange { /* private fields */ }Implementations§
Source§impl TimeRange
impl TimeRange
pub fn new(start: Timecode, duration_frames: i64) -> Self
pub fn from_start_end( start: Timecode, end: Timecode, ) -> Result<Self, TimecodeError>
pub fn start(&self) -> Timecode
pub fn duration_frames(&self) -> i64
pub fn end(&self) -> Timecode
pub fn contains(&self, tc: Timecode) -> bool
pub fn overlaps(&self, other: &TimeRange) -> bool
Trait Implementations§
impl Copy for TimeRange
impl Eq for TimeRange
impl StructuralPartialEq for TimeRange
Auto Trait Implementations§
impl Freeze for TimeRange
impl RefUnwindSafe for TimeRange
impl Send for TimeRange
impl Sync for TimeRange
impl Unpin for TimeRange
impl UnsafeUnpin for TimeRange
impl UnwindSafe for TimeRange
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