pub struct ActiveEffect<'a> { /* private fields */ }Expand description
One effect invocation at one timestamp (timeline time for transitions, composition time for composition steps).
Implementations§
Source§impl<'a> ActiveEffect<'a>
impl<'a> ActiveEffect<'a>
Sourcepub const fn new(
effect: &'a ClipEffect,
time: MediaTime,
context: SampleContext<'a>,
) -> Self
pub const fn new( effect: &'a ClipEffect, time: MediaTime, context: SampleContext<'a>, ) -> Self
The invocation effect sampled at time, with data bindings read through context.
Sourcepub fn params(&self) -> impl Iterator<Item = (&'a str, EffectParamValue)> + 'a
pub fn params(&self) -> impl Iterator<Item = (&'a str, EffectParamValue)> + 'a
Every authored parameter sampled at this timestamp. Omitted ones use definition defaults.
Sourcepub fn param(&self, name: &str) -> Option<EffectParamValue>
pub fn param(&self, name: &str) -> Option<EffectParamValue>
One parameter sampled at this timestamp, if the invocation sets it.
Sourcepub fn resources(
&self,
) -> impl Iterator<Item = (&'a str, &'a EffectResourceId)> + 'a
pub fn resources( &self, ) -> impl Iterator<Item = (&'a str, &'a EffectResourceId)> + 'a
Named external resources matched against the effect definition.
The authored invocation, with its parameters unevaluated.
Trait Implementations§
Source§impl<'a> Clone for ActiveEffect<'a>
impl<'a> Clone for ActiveEffect<'a>
impl<'a> Copy for ActiveEffect<'a>
Source§impl<'a> Debug for ActiveEffect<'a>
impl<'a> Debug for ActiveEffect<'a>
Source§impl<'a> PartialEq for ActiveEffect<'a>
impl<'a> PartialEq for ActiveEffect<'a>
impl<'a> StructuralPartialEq for ActiveEffect<'a>
Auto Trait Implementations§
impl<'a> Forget for ActiveEffect<'a>
impl<'a> Freeze for ActiveEffect<'a>where
&'a ClipEffect: Freeze,
&'a Project: Freeze,
&'a DataIndex: Freeze,
&'a CompositionPlan: Freeze,
&'a Composition: Freeze,
impl<'a> Move for ActiveEffect<'a>
impl<'a> RefUnwindSafe for ActiveEffect<'a>
impl<'a> Send for ActiveEffect<'a>where
&'a ClipEffect: Send,
&'a Project: Send,
&'a DataIndex: Send,
&'a CompositionPlan: Send,
&'a Composition: Send,
impl<'a> Sync for ActiveEffect<'a>where
RawVecInner: Sync,
NodeRef<Owned, String, Animated<EffectValue>, LeafOrInternal>: Sync,
BoxRaw<(String, Animated<EffectValue>)>: Sync,
NodeRef<Owned, String, EffectResourceId, LeafOrInternal>: Sync,
BoxRaw<(String, EffectResourceId)>: Sync,
BoxRaw<DataBinding>: Sync,
BoxRaw<MotionPath>: Sync,
BoxRaw<TextStyle>: Sync,
BoxRaw<LayoutNode>: 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,
RawTable<(ClipId, OnceLock<Vec<i64>>)>: Sync,
Arc<GeneratorPlan>: Sync,
impl<'a> Unpin for ActiveEffect<'a>where
&'a ClipEffect: Unpin,
&'a Project: Unpin,
&'a DataIndex: Unpin,
&'a CompositionPlan: Unpin,
&'a Composition: Unpin,
impl<'a> UnsafeUnpin for ActiveEffect<'a>where
&'a ClipEffect: UnsafeUnpin,
&'a Project: UnsafeUnpin,
&'a DataIndex: UnsafeUnpin,
&'a CompositionPlan: UnsafeUnpin,
&'a Composition: UnsafeUnpin,
impl<'a> UnwindSafe for ActiveEffect<'a>where
&'a ClipEffect: UnwindSafe,
&'a Project: UnwindSafe,
&'a DataIndex: UnwindSafe,
&'a CompositionPlan: 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