pub enum Consumed {
NotShowing,
Held,
Dismissed,
Chose(Choice),
}Expand description
What a keypress did to an open picker.
Total over the outcomes so a caller cannot forget the “still open” case — the splash’s three-arm enum widened by exactly the thing a picker needs and a one-shot screen does not: it holds keys for MANY presses.
Variants§
NotShowing
No picker is open; the key was not ours.
Held
The picker took the key and is still open.
Dismissed
The picker took the key and closed without committing.
Chose(Choice)
A row was committed; the picker is closed.
Trait Implementations§
impl Eq for Consumed
impl StructuralPartialEq for Consumed
Auto Trait Implementations§
impl Freeze for Consumed
impl RefUnwindSafe for Consumed
impl Send for Consumed
impl Sync for Consumed
impl Unpin for Consumed
impl UnsafeUnpin for Consumed
impl UnwindSafe for Consumed
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