pub struct FocusHandle(/* private fields */);Expand description
Identity of a focus target in one component instance.
Implementations§
Source§impl FocusHandle
impl FocusHandle
pub fn has_focus(&self) -> bool
pub fn focus_within(&self) -> bool
pub fn request(&self, action: FocusAction)
Trait Implementations§
Source§impl Clone for FocusHandle
impl Clone for FocusHandle
Source§impl Debug for FocusHandle
impl Debug for FocusHandle
Source§impl Default for FocusHandle
impl Default for FocusHandle
Auto Trait Implementations§
impl !RefUnwindSafe for FocusHandle
impl !Send for FocusHandle
impl !Sync for FocusHandle
impl !UnwindSafe for FocusHandle
impl Forget for FocusHandle
impl Freeze for FocusHandle
impl Unpin for FocusHandle
impl UnsafeUnpin for FocusHandle
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