pub enum ModalAnimationPhase {
Closed,
Opening,
Open,
Closing,
}Expand description
Current phase of the modal animation lifecycle.
State machine: Closed → Opening → Open → Closing → Closed
Rapid toggling can skip phases (e.g., Opening → Closing directly).
Variants§
Closed
Modal is fully closed and invisible.
Opening
Modal is animating in (scale-up, fade-in).
Open
Modal is fully open and visible.
Closing
Modal is animating out (scale-down, fade-out).
Implementations§
Source§impl ModalAnimationPhase
impl ModalAnimationPhase
Sourcepub fn is_visible(self) -> bool
pub fn is_visible(self) -> bool
Check if the modal should be rendered.
Sourcepub fn is_animating(self) -> bool
pub fn is_animating(self) -> bool
Check if animation is in progress.
Trait Implementations§
Source§impl Clone for ModalAnimationPhase
impl Clone for ModalAnimationPhase
Source§fn clone(&self) -> ModalAnimationPhase
fn clone(&self) -> ModalAnimationPhase
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 moreSource§impl Debug for ModalAnimationPhase
impl Debug for ModalAnimationPhase
Source§impl Default for ModalAnimationPhase
impl Default for ModalAnimationPhase
Source§fn default() -> ModalAnimationPhase
fn default() -> ModalAnimationPhase
Returns the “default value” for a type. Read more
Source§impl PartialEq for ModalAnimationPhase
impl PartialEq for ModalAnimationPhase
impl Copy for ModalAnimationPhase
impl Eq for ModalAnimationPhase
impl StructuralPartialEq for ModalAnimationPhase
Auto Trait Implementations§
impl Freeze for ModalAnimationPhase
impl RefUnwindSafe for ModalAnimationPhase
impl Send for ModalAnimationPhase
impl Sync for ModalAnimationPhase
impl Unpin for ModalAnimationPhase
impl UnsafeUnpin for ModalAnimationPhase
impl UnwindSafe for ModalAnimationPhase
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.