pub struct ClipInterval {
pub clip_id: ClipId,
pub track_index: usize,
pub start: i64,
pub end: i64,
}Expand description
An interval representing a clip’s time range on the timeline.
Fields§
§clip_id: ClipIdClip ID.
track_index: usizeTrack index.
start: i64Start position (inclusive).
end: i64End position (exclusive).
Implementations§
Source§impl ClipInterval
impl ClipInterval
Sourcepub fn new(clip_id: ClipId, track_index: usize, start: i64, end: i64) -> Self
pub fn new(clip_id: ClipId, track_index: usize, start: i64, end: i64) -> Self
Create a new clip interval.
Sourcepub fn contains_point(&self, point: i64) -> bool
pub fn contains_point(&self, point: i64) -> bool
Check if this interval contains a point.
Trait Implementations§
Source§impl Clone for ClipInterval
impl Clone for ClipInterval
Source§fn clone(&self) -> ClipInterval
fn clone(&self) -> ClipInterval
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ClipInterval
Source§impl Debug for ClipInterval
impl Debug for ClipInterval
impl Eq for ClipInterval
Source§impl PartialEq for ClipInterval
impl PartialEq for ClipInterval
Source§fn eq(&self, other: &ClipInterval) -> bool
fn eq(&self, other: &ClipInterval) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ClipInterval
Auto Trait Implementations§
impl Freeze for ClipInterval
impl RefUnwindSafe for ClipInterval
impl Send for ClipInterval
impl Sync for ClipInterval
impl Unpin for ClipInterval
impl UnsafeUnpin for ClipInterval
impl UnwindSafe for ClipInterval
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more