#[repr(u8)]pub enum Command {
Show 15 variants
Backspace = 0,
CommitCandidate = 1,
CommitRaw = 2,
Cancel = 3,
MoveLeft = 4,
MoveRight = 5,
MoveHome = 6,
MoveEnd = 7,
DeleteForward = 8,
CycleKanaVariant = 9,
CommitReading = 10,
ConvertHanja = 11,
ConversionLeft = 12,
ConversionRight = 13,
CommitRawWithoutLearning = 14,
}Expand description
Engine-level composition commands (the C++ metasequoia::Command, plus CommitRawWithoutLearning). The host facade numbers them its own way (host::Command).
Variants§
Backspace = 0
CommitCandidate = 1
CommitRaw = 2
Cancel = 3
丢弃组字。越南文和藏文的第一次只把显示切回按键原文,下一次才丢弃。
MoveLeft = 4
MoveRight = 5
MoveHome = 6
MoveEnd = 7
DeleteForward = 8
CycleKanaVariant = 9
Japanese only.
CommitReading = 10
Japanese only: commit the kana reading.
ConvertHanja = 11
Open the active scheme’s candidate list, or close it when it is open: the composing syllable’s Hanja in Korean, the conversion’s alternatives in Zhuyin. Schemes without an openable list leave it unhandled. The name stays for the wire and the goldens.
ConversionLeft = 12
整句改字的光标左移一个字:组字的首选是一个字对一个音节的全拼或双拼整句时,第一次进入改字、光标停在最后一个字前,之后每次左移一个字;进不了改字时与 MoveLeft 相同。
ConversionRight = 13
整句改字的光标右移一个字,最远到句末;不在改字里时与 MoveRight 相同。
CommitRawWithoutLearning = 14
像 CommitRaw 一样原样上屏,但不把上屏的字母学成英文词:专用英文里上屏预编辑原文并结束组字(CommitRaw 会学这个词),其余情况与 CommitRaw 相同,SessionOptions::learn_typed_spellings_on_enter 也不起作用。拼写纠错的「回车上屏原文就关掉这段输入的纠错」照常记下。由 crate::Session::command 处理,组字的各条内部路径收不到它。
Implementations§
Trait Implementations§
impl Copy for Command
impl Eq for Command
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
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
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
key and return true if they are equal.