pub struct LinkedSelection {
pub groups: Vec<Vec<u64>>,
}Expand description
Manages groups of clips that are linked together so that selecting one automatically includes its linked peers.
Fields§
§groups: Vec<Vec<u64>>Each inner Vec<u64> is a group of linked clip IDs.
Implementations§
Source§impl LinkedSelection
impl LinkedSelection
Sourcepub fn add_linked_group(&mut self, ids: Vec<u64>)
pub fn add_linked_group(&mut self, ids: Vec<u64>)
Register a new group of linked clips.
Sourcepub fn linked_clips(&self, clip_id: u64) -> Vec<u64>
pub fn linked_clips(&self, clip_id: u64) -> Vec<u64>
Return all clip IDs that are linked to clip_id (not including
clip_id itself). Returns an empty Vec when the clip has no links.
Trait Implementations§
Source§impl Clone for LinkedSelection
impl Clone for LinkedSelection
Source§fn clone(&self) -> LinkedSelection
fn clone(&self) -> LinkedSelection
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 LinkedSelection
impl Debug for LinkedSelection
Source§impl Default for LinkedSelection
impl Default for LinkedSelection
Source§fn default() -> LinkedSelection
fn default() -> LinkedSelection
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LinkedSelection
impl RefUnwindSafe for LinkedSelection
impl Send for LinkedSelection
impl Sync for LinkedSelection
impl Unpin for LinkedSelection
impl UnsafeUnpin for LinkedSelection
impl UnwindSafe for LinkedSelection
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