pub struct Hero {
pub key: u64,
pub duration: Duration,
pub easing: fn(f32) -> f32,
}Expand description
Declara un nodo como hero: la key enlaza la identidad entre frames; si
el rect cambia, el runtime anima la transición.
Fields§
§key: u64§duration: Duration§easing: fn(f32) -> f32Easing aplicado a t ∈ [0,1]. Por defecto, los setters de [View]
usan un ease-out cúbico (igual que las animaciones implícitas).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Hero
impl RefUnwindSafe for Hero
impl Send for Hero
impl Sync for Hero
impl Unpin for Hero
impl UnsafeUnpin for Hero
impl UnwindSafe for Hero
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