Skip to main content

Recorded

Struct Recorded 

Source
pub struct Recorded { /* private fields */ }
Expand description

A transition a scene has started. Copied out of the executor after the scene has been measured.

Implementations§

Source§

impl Recorded

Source

pub fn new( kind: Kind, seconds: f64, ease: CubicBezier, overlap: bool, start: f64, ) -> Self

A transition that starts at start seconds into its scene.

Source

pub fn kind_name(self) -> &'static str

"fade", "slide", "wipe", "zoom_in", "zoom_out", "custom", or a shader preset such as "water_wipe".

Source

pub fn shader(self) -> Option<ShaderTransition>

The shader preset that paints this transition, if it is one.

Source

pub fn dir_name(self) -> Option<&'static str>

"left", "right", "up" or "down" for a slide or a wipe.

Source

pub fn overlap(self) -> bool

The previous scene keeps playing instead of holding its last frame.

Source

pub fn seconds(self) -> f64

Blend length in seconds.

Source

pub fn start(self) -> f64

Scene time at which the blend starts.

Source

pub fn active(self, now: f64) -> bool

This scene time is still inside the blend.

Source

pub fn progress(self, now: f64) -> f64

Eased progress at now, clamped to 0..=1.

Source

pub fn blend_at(self, now: f64) -> Blend

Layer poses at now.

Trait Implementations§

Source§

impl Clone for Recorded

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 Copy for Recorded

Auto Trait Implementations§

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

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> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V