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>
impl<'a> Move for SampleContext<'a>
impl<'a> RefUnwindSafe for SampleContext<'a>
impl<'a> Send for SampleContext<'a>
impl<'a> Sync for SampleContext<'a>
impl<'a> Unpin for SampleContext<'a>
impl<'a> UnsafeUnpin for SampleContext<'a>
impl<'a> UnwindSafe for SampleContext<'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