pub struct ActiveComposition<'a> { /* private fields */ }Expand description
A clip’s composition at one timeline timestamp.
Implementations§
Source§impl<'a> ActiveComposition<'a>
impl<'a> ActiveComposition<'a>
Sourcepub const fn new(plan: &'a CompositionPlan, time: MediaTime) -> Self
pub const fn new(plan: &'a CompositionPlan, time: MediaTime) -> Self
plan at composition time time, reading no data.
Sourcepub const fn with_data(self, data: SampleContext<'a>) -> Self
pub const fn with_data(self, data: SampleContext<'a>) -> Self
The same composition reading data through data.
Sourcepub fn step_data(&self, step: usize) -> SampleContext<'a>
pub fn step_data(&self, step: usize) -> SampleContext<'a>
What step step’s settings read data through.
Sourcepub const fn plan(&self) -> &'a CompositionPlan
pub const fn plan(&self) -> &'a CompositionPlan
The compiled composition.
Trait Implementations§
Source§impl<'a> Clone for ActiveComposition<'a>
impl<'a> Clone for ActiveComposition<'a>
impl<'a> Copy for ActiveComposition<'a>
Source§impl<'a> Debug for ActiveComposition<'a>
impl<'a> Debug for ActiveComposition<'a>
Source§impl<'a> PartialEq for ActiveComposition<'a>
impl<'a> PartialEq for ActiveComposition<'a>
impl<'a> StructuralPartialEq for ActiveComposition<'a>
Auto Trait Implementations§
impl<'a> Forget for ActiveComposition<'a>
impl<'a> Freeze for ActiveComposition<'a>where
&'a CompositionPlan: Freeze,
&'a Project: Freeze,
&'a DataIndex: Freeze,
&'a Composition: Freeze,
impl<'a> Move for ActiveComposition<'a>
impl<'a> RefUnwindSafe for ActiveComposition<'a>
impl<'a> Send for ActiveComposition<'a>
impl<'a> Sync for ActiveComposition<'a>where
RawVecInner: Sync,
BoxRaw<DataBinding>: Sync,
BoxRaw<TextStyle>: Sync,
BoxRaw<LayoutNode>: Sync,
Arc<GeneratorPlan>: Sync,
NodeRef<Owned, String, Animated<EffectValue>, LeafOrInternal>: Sync,
BoxRaw<(String, Animated<EffectValue>)>: Sync,
NodeRef<Owned, String, EffectResourceId, LeafOrInternal>: Sync,
BoxRaw<(String, EffectResourceId)>: Sync,
NodeRef<Owned, String, Option<NodeId>, LeafOrInternal>: Sync,
BoxRaw<(String, Option<NodeId>)>: Sync,
NodeRef<Owned, String, TextStylePatch, LeafOrInternal>: Sync,
BoxRaw<(String, TextStylePatch)>: Sync,
NodeRef<Owned, String, Value, LeafOrInternal>: Sync,
BoxRaw<(String, Value)>: Sync,
RawTable<(DataSetId, usize)>: Sync,
RawTable<(ClipId, (usize, usize))>: Sync,
impl<'a> Unpin for ActiveComposition<'a>
impl<'a> UnsafeUnpin for ActiveComposition<'a>where
&'a CompositionPlan: UnsafeUnpin,
&'a Project: UnsafeUnpin,
&'a DataIndex: UnsafeUnpin,
&'a Composition: UnsafeUnpin,
impl<'a> UnwindSafe for ActiveComposition<'a>where
&'a CompositionPlan: UnwindSafe,
&'a Project: UnwindSafe,
&'a DataIndex: UnwindSafe,
&'a Composition: UnwindSafe,
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