afrim-preprocessor 0.7.0

A preprocessor to process keyboard events for an input method.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#![deny(missing_docs)]

/// Possible commands that can be generated by the `afrim-preprocessor`.
#[derive(Clone, Debug, Eq, PartialEq)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub enum Command {
    /// Request to commit a text.
    CommitText(String),
    /// Request to pause the listener.
    Pause,
    /// Request to resume the listener.
    Resume,
    /// Request to delete the last insertion.
    Delete(String),
}