pub enum EditOpType {
MoveClip {
clip_id: ClipId,
new_start: i64,
},
TrimClip {
clip_id: ClipId,
new_in: i64,
new_out: i64,
},
DeleteClip {
clip_id: ClipId,
},
InsertClip {
clip_id: ClipId,
track_index: usize,
start: i64,
duration: i64,
},
NoOp,
}Expand description
The kind of atomic edit operation applied to the shared timeline.
Variants§
MoveClip
Move a clip to a new timeline start position.
TrimClip
Trim a clip’s source in/out points.
Fields
DeleteClip
Delete a clip from the timeline.
InsertClip
Insert a new clip at the given track and position.
Fields
NoOp
No-op placeholder used when an operation is suppressed by OT.
Trait Implementations§
Source§impl Clone for EditOpType
impl Clone for EditOpType
Source§fn clone(&self) -> EditOpType
fn clone(&self) -> EditOpType
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 moreSource§impl Debug for EditOpType
impl Debug for EditOpType
Source§impl PartialEq for EditOpType
impl PartialEq for EditOpType
Source§fn eq(&self, other: &EditOpType) -> bool
fn eq(&self, other: &EditOpType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EditOpType
Auto Trait Implementations§
impl Freeze for EditOpType
impl RefUnwindSafe for EditOpType
impl Send for EditOpType
impl Sync for EditOpType
impl Unpin for EditOpType
impl UnsafeUnpin for EditOpType
impl UnwindSafe for EditOpType
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<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