pub enum SelectionResult {
Next,
Previous,
End,
Pending,
None,
}Expand description
The result after handling a SelectionEvent.
A SelectionContainer
uses it to decide how a selection expands across its selectables.
Variants§
Next
There is nothing left to select forward in this selectable, and further selection should extend to the next selectable in screen order.
Previous
Selection does not reach this selectable and is located before it in screen order.
End
Selection ends in this selectable.
Pending
The result can’t be determined in this frame; the subtree is scrolling to reveal content.
None
There is no result for the event, as for select-all, clear and select-word.
Trait Implementations§
Source§impl Clone for SelectionResult
impl Clone for SelectionResult
impl Copy for SelectionResult
Source§impl Debug for SelectionResult
impl Debug for SelectionResult
impl Eq for SelectionResult
Source§impl PartialEq for SelectionResult
impl PartialEq for SelectionResult
impl StructuralPartialEq for SelectionResult
Auto Trait Implementations§
impl Forget for SelectionResult
impl Freeze for SelectionResult
impl Move for SelectionResult
impl RefUnwindSafe for SelectionResult
impl Send for SelectionResult
impl Sync for SelectionResult
impl Unpin for SelectionResult
impl UnsafeUnpin for SelectionResult
impl UnwindSafe for SelectionResult
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.