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
impl Recorded
Sourcepub fn new(
kind: Kind,
seconds: f64,
ease: CubicBezier,
overlap: bool,
start: f64,
) -> Self
pub fn new( kind: Kind, seconds: f64, ease: CubicBezier, overlap: bool, start: f64, ) -> Self
A transition that starts at start seconds into its scene.
Sourcepub fn kind_name(self) -> &'static str
pub fn kind_name(self) -> &'static str
"fade", "slide", "wipe", "zoom_in", "zoom_out", "custom",
or a shader preset such as "water_wipe".
Sourcepub fn shader(self) -> Option<ShaderTransition>
pub fn shader(self) -> Option<ShaderTransition>
The shader preset that paints this transition, if it is one.
Sourcepub fn dir_name(self) -> Option<&'static str>
pub fn dir_name(self) -> Option<&'static str>
"left", "right", "up" or "down" for a slide or a wipe.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Recorded
impl RefUnwindSafe for Recorded
impl Send for Recorded
impl Sync for Recorded
impl Unpin for Recorded
impl UnsafeUnpin for Recorded
impl UnwindSafe for Recorded
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