pub struct SceneTransition { /* private fields */ }Implementations§
Source§impl SceneTransition
impl SceneTransition
pub fn between(previous: &Node, next: &Node) -> Self
Sourcepub fn retarget(&mut self, previous: &Node, next: &Node, now: Duration)
pub fn retarget(&mut self, previous: &Node, next: &Node, now: Duration)
Replace the targets at this instant on the same scene clock. Unchanged targets keep their original start and end times.
Sourcepub fn next_frame(&self, elapsed: Duration) -> Option<Duration>
pub fn next_frame(&self, elapsed: Duration) -> Option<Duration>
Return the earliest useful frame time. Pending delays can sleep until their start time. A running interpolation needs another frame now.
pub fn running(&self, elapsed: Duration) -> bool
pub fn frame<'a>(&self, target: &'a Node, elapsed: Duration) -> Cow<'a, Node>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for SceneTransition
impl !Send for SceneTransition
impl !Sync for SceneTransition
impl !UnwindSafe for SceneTransition
impl Forget for SceneTransition
impl Freeze for SceneTransition
impl Move for SceneTransition
impl Unpin for SceneTransition
impl UnsafeUnpin for SceneTransition
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