pub struct Engine { /* private fields */ }Expand description
The main entry point for the Vietnamese Input Method Engine.
Implementations§
Source§impl Engine
impl Engine
pub fn new(input_method: InputMethod) -> Self
pub fn with_config(input_method: InputMethod, config: Config) -> Self
pub fn config(&self) -> Config
pub fn set_config(&mut self, config: Config)
pub fn input_method(&self) -> InputMethod
pub fn process(&mut self, s: &str, mode: Mode) -> String
pub fn process_str(&mut self, s: &str, mode: Mode) -> &Self
pub fn process_key(&mut self, key: char, mode: Mode)
pub fn commit(&mut self)
pub fn output(&self) -> String
pub fn get_processed_str(&self, options: OutputOptions) -> String
pub fn is_valid(&self, input_is_full_complete: bool) -> bool
pub fn restore_last_word(&mut self, to_vietnamese: bool)
pub fn remove_last_char(&mut self, refresh_last_tone_target: bool)
pub fn reset(&mut self)
Auto Trait Implementations§
impl Freeze for Engine
impl RefUnwindSafe for Engine
impl Send for Engine
impl Sync for Engine
impl Unpin for Engine
impl UnsafeUnpin for Engine
impl UnwindSafe for Engine
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