pub enum FocusOutcome {
Applied,
Unchanged,
Rejected(FocusRejection),
}Expand description
Result of a focus operation on LayoutRuntime.
Variants§
Applied
Focus moved to a new panel.
Unchanged
The target panel was already focused; no change.
Rejected(FocusRejection)
Focus was rejected for the given reason.
Implementations§
Source§impl FocusOutcome
impl FocusOutcome
Sourcepub fn is_applied(self) -> bool
pub fn is_applied(self) -> bool
Whether focus was applied (moved to a new panel).
Sourcepub fn is_on_target(self) -> bool
pub fn is_on_target(self) -> bool
Whether focus is on the target panel (either applied or was already there).
Trait Implementations§
Source§impl Clone for FocusOutcome
impl Clone for FocusOutcome
Source§fn clone(&self) -> FocusOutcome
fn clone(&self) -> FocusOutcome
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 FocusOutcome
impl Debug for FocusOutcome
Source§impl Hash for FocusOutcome
impl Hash for FocusOutcome
Source§impl PartialEq for FocusOutcome
impl PartialEq for FocusOutcome
impl Copy for FocusOutcome
impl Eq for FocusOutcome
impl StructuralPartialEq for FocusOutcome
Auto Trait Implementations§
impl Freeze for FocusOutcome
impl RefUnwindSafe for FocusOutcome
impl Send for FocusOutcome
impl Sync for FocusOutcome
impl Unpin for FocusOutcome
impl UnsafeUnpin for FocusOutcome
impl UnwindSafe for FocusOutcome
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