pub enum Edit {
Edited,
Cancel,
Submit,
Complete,
History(bool),
Ignored,
}Expand description
What a key did to the line, or what it asks the front end for.
Variants§
Edited
The line changed, or the cursor moved. Nothing to do but draw.
Cancel
Esc.
Submit
Enter: the line is the answer.
Complete
Tab: complete, if the prompt knows how.
History(bool)
Up / Down: step the history (true is older).
Ignored
Not an editing key.
Trait Implementations§
impl Copy for Edit
impl Eq for Edit
impl StructuralPartialEq for Edit
Auto Trait Implementations§
impl Freeze for Edit
impl RefUnwindSafe for Edit
impl Send for Edit
impl Sync for Edit
impl Unpin for Edit
impl UnsafeUnpin for Edit
impl UnwindSafe for Edit
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.