pub struct ActiveEffect<'a> { /* private fields */ }Expand description
One effect invocation at one timestamp: timeline time for a timeline transition, composition time for a composition step.
Implementations§
Source§impl<'a> ActiveEffect<'a>
impl<'a> ActiveEffect<'a>
Sourcepub const fn new(effect: &'a ClipEffect, time: MediaTime) -> Self
pub const fn new(effect: &'a ClipEffect, time: MediaTime) -> Self
The invocation effect sampled at time.
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, by name. Parameters the invocation leaves out take their 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> Freeze for ActiveEffect<'a>
impl<'a> RefUnwindSafe for ActiveEffect<'a>
impl<'a> Send for ActiveEffect<'a>
impl<'a> Sync for ActiveEffect<'a>
impl<'a> Unpin for ActiveEffect<'a>
impl<'a> UnsafeUnpin for ActiveEffect<'a>
impl<'a> UnwindSafe for ActiveEffect<'a>
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