pub struct FocusHandle(/* private fields */);Expand description
A cheap, Copy handle to a focusable widget’s identity, so a caller that has moved the widget into a
container (and no longer holds a reference to it) can still drive its focus — e.g. autofocus a hosted
editor when its tab activates. Obtain one from the widget (see crate::TextArea::focus_handle).
Implementations§
Source§impl FocusHandle
impl FocusHandle
Trait Implementations§
Source§impl Clone for FocusHandle
impl Clone for FocusHandle
Source§fn clone(&self) -> FocusHandle
fn clone(&self) -> FocusHandle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FocusHandle
Source§impl Debug for FocusHandle
impl Debug for FocusHandle
impl Eq for FocusHandle
Source§impl PartialEq for FocusHandle
impl PartialEq for FocusHandle
impl StructuralPartialEq for FocusHandle
Auto Trait Implementations§
impl Freeze for FocusHandle
impl RefUnwindSafe for FocusHandle
impl Send for FocusHandle
impl Sync for FocusHandle
impl Unpin for FocusHandle
impl UnsafeUnpin for FocusHandle
impl UnwindSafe 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