pub struct Chain {
pub first: Box<dyn TextAssist>,
pub second: Box<dyn TextAssist>,
}Expand description
Dois motores juntos: as sugestões do primeiro vêm antes; uma palavra é errada só se os dois discordam dela (o primeiro conhece os termos do app, o segundo o idioma).
Fields§
§first: Box<dyn TextAssist>§second: Box<dyn TextAssist>Trait Implementations§
Source§impl TextAssist for Chain
impl TextAssist for Chain
Source§fn check(&mut self, text: &str, language: &str) -> Vec<Misspelling>
fn check(&mut self, text: &str, language: &str) -> Vec<Misspelling>
As palavras erradas do texto.
Source§fn suggest(&mut self, word: &str, language: &str) -> Vec<String>
fn suggest(&mut self, word: &str, language: &str) -> Vec<String>
Sugestões de correção para uma palavra errada (o menu do clique direito).
Auto Trait Implementations§
impl !RefUnwindSafe for Chain
impl !Send for Chain
impl !Sync for Chain
impl !UnwindSafe for Chain
impl Forget for Chain
impl Freeze for Chain
impl Move for Chain
impl Unpin for Chain
impl UnsafeUnpin for Chain
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