Skip to main content

CompositionPlan

Struct CompositionPlan 

Source
pub struct CompositionPlan {
    pub id: CompositionId,
    pub steps: Vec<Step>,
    pub output: usize,
    pub media: Vec<(String, MediaTime)>,
}
Expand description

A composition’s output, drawn by steps in dependency order.

Fields§

§id: CompositionId

The composition.

§steps: Vec<Step>

Steps in dependency order; each step’s inputs are earlier steps.

§output: usize

The step whose image is the composition’s picture.

§media: Vec<(String, MediaTime)>

Every media node of the compositions the steps come from, drawn or not, by inlined path, with its start: what a value bound to data reads through.

Implementations§

Source§

impl CompositionPlan

Source

pub fn effects(&self) -> impl Iterator<Item = &ClipEffect>

The effect, transition and generator effect invocations the steps run, in step order.

Source

pub fn media_start(&self, step: usize, via: &NodeId) -> Option<MediaTime>

The start of the media node via beside step step, found as the node of that id in the same inlined composition, past the ids of the time offset nodes the step is read through.

Source

pub fn uses_clip(&self) -> bool

Whether a step draws the picture of the clip showing the plan at the frame’s own time.

Source

pub fn draws_clip(&self) -> bool

Whether a step draws the picture of the clip showing the plan, at the frame’s own time or at another.

Source

pub fn shifted_clips(&self) -> impl Iterator<Item = (usize, MediaTime)> + '_

The steps that draw the clip showing the plan at another time, with their shifts.

Trait Implementations§

Source§

impl Clone for CompositionPlan

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CompositionPlan

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for CompositionPlan

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for CompositionPlan

Auto Trait Implementations§

§

impl Forget for CompositionPlan

§

impl Freeze for CompositionPlan

§

impl Move for CompositionPlan

§

impl RefUnwindSafe for CompositionPlan

§

impl Send for CompositionPlan
where RawVecInner: Send, BoxRaw<DataBinding>: Send, BoxRaw<MotionPath>: Send, BoxRaw<TextStyle>: Send, BoxRaw<LayoutNode>: Send, NodeRef<Owned, String, Animated<EffectValue>, LeafOrInternal>: Send, BoxRaw<(String, Animated<EffectValue>)>: Send, NodeRef<Owned, String, EffectResourceId, LeafOrInternal>: Send, BoxRaw<(String, EffectResourceId)>: Send, Arc<GeneratorPlan>: Send,

§

impl Sync for CompositionPlan
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, Arc<GeneratorPlan>: Sync,

§

impl Unpin for CompositionPlan

§

impl UnsafeUnpin for CompositionPlan

§

impl UnwindSafe for CompositionPlan

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.