pub struct SampleContext<'a> { /* private fields */ }Expand description
What a sampled value reads data through, the project’s data sets and the clock of its place.
Implementations§
Source§impl<'a> SampleContext<'a>
impl<'a> SampleContext<'a>
Sourcepub const NONE: SampleContext<'static>
pub const NONE: SampleContext<'static>
No data, so a bound value evaluates as having no samples.
Sourcepub const fn timeline(project: &'a Project, index: &'a DataIndex) -> Self
pub const fn timeline(project: &'a Project, index: &'a DataIndex) -> Self
Timeline-time places of project.
Sourcepub const fn composition(
project: &'a Project,
index: &'a DataIndex,
composition: &'a Composition,
) -> Self
pub const fn composition( project: &'a Project, index: &'a DataIndex, composition: &'a Composition, ) -> Self
Composition-time places of composition, read through its own media nodes.
Sourcepub fn for_step(&self, plan: &'a CompositionPlan, step: usize) -> Self
pub fn for_step(&self, plan: &'a CompositionPlan, step: usize) -> Self
The same data read at step step of plan, whose settings are in composition time and
read through the media steps inlined beside it.
Sourcepub fn for_timeline(&self) -> Self
pub fn for_timeline(&self) -> Self
The same data read at timeline-time places.
Trait Implementations§
Source§impl<'a> Clone for SampleContext<'a>
impl<'a> Clone for SampleContext<'a>
impl<'a> Copy for SampleContext<'a>
Source§impl Debug for SampleContext<'_>
impl Debug for SampleContext<'_>
Auto Trait Implementations§
impl<'a> Forget for SampleContext<'a>
impl<'a> Freeze for SampleContext<'a>where
&'a Project: Freeze,
&'a DataIndex: Freeze,
&'a CompositionPlan: Freeze,
&'a Composition: Freeze,
impl<'a> Move for SampleContext<'a>
impl<'a> RefUnwindSafe for SampleContext<'a>
impl<'a> Send for SampleContext<'a>
impl<'a> Sync for SampleContext<'a>where
RawVecInner: Sync,
BoxRaw<DataBinding>: Sync,
BoxRaw<MotionPath>: Sync,
BoxRaw<TextStyle>: Sync,
BoxRaw<LayoutNode>: 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,
RawTable<(ClipId, OnceLock<Vec<i64>>)>: Sync,
Arc<GeneratorPlan>: Sync,
impl<'a> Unpin for SampleContext<'a>
impl<'a> UnsafeUnpin for SampleContext<'a>where
&'a Project: UnsafeUnpin,
&'a DataIndex: UnsafeUnpin,
&'a CompositionPlan: UnsafeUnpin,
&'a Composition: UnsafeUnpin,
impl<'a> UnwindSafe for SampleContext<'a>where
&'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