pub struct Macro { /* private fields */ }Expand description
A named, replayable sequence of edit actions.
Implementations§
Source§impl Macro
impl Macro
Sourcepub fn new(name: impl Into<String>, actions: Vec<MacroAction>) -> Self
pub fn new(name: impl Into<String>, actions: Vec<MacroAction>) -> Self
Create a macro with the given name and action list.
Sourcepub fn actions(&self) -> &[MacroAction]
pub fn actions(&self) -> &[MacroAction]
Recorded actions.
Sourcepub fn chain(&self, other: &Macro) -> Macro
pub fn chain(&self, other: &Macro) -> Macro
Create a new macro by appending another macro’s actions to this one.
Sourcepub fn remap_ids<F>(&self, f: F) -> Macro
pub fn remap_ids<F>(&self, f: F) -> Macro
Return a new macro with all clip IDs remapped through f.
Sourcepub fn referenced_clip_ids(&self) -> Vec<u64>
pub fn referenced_clip_ids(&self) -> Vec<u64>
Return unique clip IDs referenced by this macro.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Macro
impl RefUnwindSafe for Macro
impl Send for Macro
impl Sync for Macro
impl Unpin for Macro
impl UnsafeUnpin for Macro
impl UnwindSafe for Macro
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