pub struct ValidationErrorState { /* private fields */ }Expand description
State for validation error animation and accessibility.
Implementations§
Source§impl ValidationErrorState
impl ValidationErrorState
Sourcepub fn with_aria_id(self, id: u32) -> Self
pub fn with_aria_id(self, id: u32) -> Self
Create a new state with the given ARIA ID.
Sourcepub fn set_visible(&mut self, visible: bool)
pub fn set_visible(&mut self, visible: bool)
Set visibility directly (for immediate show/hide).
Sourcepub fn is_visible(&self) -> bool
pub fn is_visible(&self) -> bool
Check if the error is currently visible.
Sourcepub fn is_fully_visible(&self) -> bool
pub fn is_fully_visible(&self) -> bool
Check if the error is fully visible (animation complete).
Sourcepub fn take_just_shown(&mut self) -> bool
pub fn take_just_shown(&mut self) -> bool
Check and clear the “just shown” flag (for screen reader announcements).
Sourcepub fn tick(&mut self, animation_duration: Duration)
pub fn tick(&mut self, animation_duration: Duration)
Update animation state. Call this each frame.
Sourcepub fn is_animating(&self) -> bool
pub fn is_animating(&self) -> bool
Check if an animation is currently in progress.
Trait Implementations§
Source§impl Clone for ValidationErrorState
impl Clone for ValidationErrorState
Source§fn clone(&self) -> ValidationErrorState
fn clone(&self) -> ValidationErrorState
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 ValidationErrorState
impl Debug for ValidationErrorState
Auto Trait Implementations§
impl Freeze for ValidationErrorState
impl RefUnwindSafe for ValidationErrorState
impl Send for ValidationErrorState
impl Sync for ValidationErrorState
impl Unpin for ValidationErrorState
impl UnsafeUnpin for ValidationErrorState
impl UnwindSafe for ValidationErrorState
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