Skip to main content

LocalModeOptions

Struct LocalModeOptions 

Source
pub struct LocalModeOptions {
Show 16 fields pub unicode: bool, pub date_time: bool, pub date_time_inline: bool, pub date_time_menu: bool, pub quick_phrase: bool, pub emoji: bool, pub kaomoji: bool, pub super_jianpin: bool, pub temporary_english: bool, pub temporary_japanese: bool, pub expression: bool, pub command: bool, pub mention: bool, pub chaizi: bool, pub symbol: bool, pub shift_letter_entry: bool,
}
Expand description

Which local modes may be entered. The Shift+letter modes of the reference are on by default, symbol mode (S) among them, as the reference’s factory configuration ships it on; expression (V) follows the reference’s v_mode factory and is on, command (/) and mention (@) are off, because entering them takes a key that used to reach the host as text. 拆字 (C) 在共享偏好层默认开(对齐参考的 radical_mode 出厂值),host-api 把未写偏好的文档读作开。

Fields§

§unicode: bool§date_time: bool

Shift+T 日期时间快捷输入模式(参考 utility.date_time_mode)。行内日期时间混入普通候选由 date_time_inline 单独开关(参考 utility.date_time_candidates,出厂关)。

§date_time_inline: bool

全拼输入 riqi/sj/xq/nongli 时把当前日期、时间、星期或农历接在对应的词后面(参考 utility.date_time_candidates)。与 T 模式独立:T 模式关着时行内混入仍可开。

§date_time_menu: bool

「📅日期」入口:日期时间混进普通候选时,第三位放一个入口,选中后候选窗换成这一组的全部格式(参考 utility.date_time_menu,出厂开)。依附 date_time_inline。

§quick_phrase: bool§emoji: bool§kaomoji: bool§super_jianpin: bool§temporary_english: bool§temporary_japanese: bool§expression: bool§command: bool§mention: bool§chaizi: bool

C:拆字反查。

§symbol: bool

S:符号模式。

§shift_letter_entry: bool

总开关:没有组字时 Shift+字母(U/T/K/E/M/J/Y/R/V/C/S)能否进入对应的快捷模式。关掉后这些键照常打出大写字母,各模式自己的开关不变;/ 和 @ 不经过它。

Trait Implementations§

Source§

impl Clone for LocalModeOptions

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for LocalModeOptions

Source§

impl Debug for LocalModeOptions

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for LocalModeOptions

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Eq for LocalModeOptions

Source§

impl PartialEq for LocalModeOptions

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for LocalModeOptions

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.