pub enum TextEvent {
Committed {
id: EditId,
text: String,
},
Cancelled {
id: EditId,
},
TabPressed {
id: EditId,
text: String,
},
}Expand description
How the front end’s editor ended the edit on field id.
Variants§
Committed
Enter on a single line, or the field lost focus: the text stands.
Cancelled
Escape: the text is dropped.
TabPressed
Tab in a cycle editor: the text stands, and the cycle steps on.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TextEvent
impl<'de> Deserialize<'de> for TextEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TextEvent
impl StructuralPartialEq for TextEvent
Auto Trait Implementations§
impl Freeze for TextEvent
impl RefUnwindSafe for TextEvent
impl Send for TextEvent
impl Sync for TextEvent
impl Unpin for TextEvent
impl UnsafeUnpin for TextEvent
impl UnwindSafe for TextEvent
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.