pub struct TransitionProfile {
pub open_ticks: u64,
pub close_ticks: u64,
pub ease: fn(f32) -> f32,
}Expand description
Shared transition profile for binary open/close state machines.
This mirrors the common Base UI/Radix pattern where components keep a mounted/present state while transitioning between two boolean states and expose a progress value for style mapping.
Fields§
§open_ticks: u64§close_ticks: u64§ease: fn(f32) -> f32Implementations§
Trait Implementations§
Source§impl Clone for TransitionProfile
impl Clone for TransitionProfile
Source§fn clone(&self) -> TransitionProfile
fn clone(&self) -> TransitionProfile
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TransitionProfile
Auto Trait Implementations§
impl Freeze for TransitionProfile
impl RefUnwindSafe for TransitionProfile
impl Send for TransitionProfile
impl Sync for TransitionProfile
impl Unpin for TransitionProfile
impl UnsafeUnpin for TransitionProfile
impl UnwindSafe for TransitionProfile
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