pub struct AutoFocusRequestCx { /* private fields */ }Expand description
Context passed to auto-focus handlers.
This mirrors the DOM/Radix contract where onOpenAutoFocus / onCloseAutoFocus may “prevent
default” to take full control of focus movement.
Implementations§
Source§impl AutoFocusRequestCx
impl AutoFocusRequestCx
pub fn new() -> Self
pub fn prevent_default(&mut self)
pub fn default_prevented(&self) -> bool
Trait Implementations§
Source§impl Clone for AutoFocusRequestCx
impl Clone for AutoFocusRequestCx
Source§fn clone(&self) -> AutoFocusRequestCx
fn clone(&self) -> AutoFocusRequestCx
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 AutoFocusRequestCx
impl Debug for AutoFocusRequestCx
Source§impl Default for AutoFocusRequestCx
impl Default for AutoFocusRequestCx
Source§impl PartialEq for AutoFocusRequestCx
impl PartialEq for AutoFocusRequestCx
impl Copy for AutoFocusRequestCx
impl Eq for AutoFocusRequestCx
impl StructuralPartialEq for AutoFocusRequestCx
Auto Trait Implementations§
impl Freeze for AutoFocusRequestCx
impl RefUnwindSafe for AutoFocusRequestCx
impl Send for AutoFocusRequestCx
impl Sync for AutoFocusRequestCx
impl Unpin for AutoFocusRequestCx
impl UnsafeUnpin for AutoFocusRequestCx
impl UnwindSafe for AutoFocusRequestCx
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