pub struct FocusEvent {
pub blurred: Option<FocusId>,
pub focused: Option<FocusId>,
}Expand description
Event emitted when focus changes.
Fields§
§blurred: Option<FocusId>The element that lost focus (if any).
focused: Option<FocusId>The element that gained focus (if any).
Implementations§
Trait Implementations§
Source§impl Clone for FocusEvent
impl Clone for FocusEvent
Source§fn clone(&self) -> FocusEvent
fn clone(&self) -> FocusEvent
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 FocusEvent
impl Debug for FocusEvent
Source§impl PartialEq for FocusEvent
impl PartialEq for FocusEvent
impl Copy for FocusEvent
impl Eq for FocusEvent
impl StructuralPartialEq for FocusEvent
Auto Trait Implementations§
impl Freeze for FocusEvent
impl RefUnwindSafe for FocusEvent
impl Send for FocusEvent
impl Sync for FocusEvent
impl Unpin for FocusEvent
impl UnwindSafe for FocusEvent
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§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.