pub struct TransitionFrame {
pub t: f32,
pub direction: Direction,
pub size: Vec2,
}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 outlet.
Trait Implementations§
Source§impl Clone for TransitionFrame
impl Clone for TransitionFrame
impl Copy for TransitionFrame
Auto Trait Implementations§
impl Freeze for TransitionFrame
impl RefUnwindSafe for TransitionFrame
impl Send for TransitionFrame
impl Sync for TransitionFrame
impl Unpin for TransitionFrame
impl UnsafeUnpin for TransitionFrame
impl UnwindSafe for TransitionFrame
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,
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