pub struct TransitionFrame {
pub t: f32,
pub direction: Direction,
pub size: Vec2,
pub navigation: Navigation,
}Expand description
The input of a transition effect for one frame.
Fields§
§t: f32Linear progress, from 0.0 to 1.0. Apply your own easing.
direction: Direction§size: Vec2The size of the children.
The navigation being animated: where from and to, e.g. to slide by the pages’ order in a sidebar rather than by the history’s direction.
Trait Implementations§
Source§impl Clone for TransitionFrame
impl Clone for TransitionFrame
Auto Trait Implementations§
impl Forget for TransitionFrame
impl Freeze for TransitionFrame
impl Move for TransitionFrame
impl RefUnwindSafe for TransitionFrame
impl Send for TransitionFramewhere
RawVecInner: Send,
impl Sync for TransitionFramewhere
RawVecInner: Sync,
impl Unpin for TransitionFrame
impl UnsafeUnpin for TransitionFrame
impl UnwindSafe for TransitionFramewhere
RawVecInner: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more