#[repr(u8)]pub enum Command {
Show 14 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,
}Expand description
Engine-level composition commands (the C++ metasequoia::Command). The host facade adds its own CommitRawWithoutLearning on top.
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 相同。
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
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.