pub struct InputMethod {
pub name: String,
pub rules: Vec<Rule>,
pub super_keys: Vec<char>,
pub tone_keys: Vec<char>,
pub appending_keys: Vec<char>,
pub keys: Vec<char>,
}Expand description
A collection of rules defining how keys transform text.
Use the provided static methods (e.g., InputMethod::telex()) to get
standard Vietnamese input methods.
Fields§
§name: StringThe name of the input method.
rules: Vec<Rule>The complete list of transformation rules.
super_keys: Vec<char>Keys that can affect multiple vowels at once (e.g., ‘w’ in Telex).
tone_keys: Vec<char>Keys that apply tone marks.
appending_keys: Vec<char>Keys that primarily append characters.
keys: Vec<char>All keys that have at least one rule associated with them.
Implementations§
Source§impl InputMethod
impl InputMethod
Sourcepub fn microsoft_layout() -> Self
pub fn microsoft_layout() -> Self
Microsoft Standard Vietnamese keyboard layout.
Sourcepub fn telex_vni_viqr() -> Self
pub fn telex_vni_viqr() -> Self
Combined Telex, VNI, and VIQR.
Sourcepub fn vni_french_layout() -> Self
pub fn vni_french_layout() -> Self
VNI for French keyboard layouts.
Trait Implementations§
Source§impl Clone for InputMethod
impl Clone for InputMethod
Source§fn clone(&self) -> InputMethod
fn clone(&self) -> InputMethod
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InputMethod
impl Debug for InputMethod
Source§impl Default for InputMethod
impl Default for InputMethod
Source§fn default() -> InputMethod
fn default() -> InputMethod
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for InputMethod
impl RefUnwindSafe for InputMethod
impl Send for InputMethod
impl Sync for InputMethod
impl Unpin for InputMethod
impl UnsafeUnpin for InputMethod
impl UnwindSafe for InputMethod
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