pub struct Request<'a> {
pub word: &'a [u16],
pub active: Option<Mode>,
pub context: Option<Mode>,
pub keyboard: Keyboard,
pub explicit_intent: bool,
}Expand description
One word to decide. The caller establishes that the word is complete and owned; infer
still checks its length, script and case.
Fields§
§word: &'a [u16]Complete word, without delimiter or normalization.
active: Option<Mode>Input mode the word was typed in; None, an unknown mode, is ineligible.
context: Option<Mode>Language of the recent finished words, from detect_context, if known.
keyboard: KeyboardRussian layout variant, which places the ё key.
explicit_intent: boolAn explicit manual/reversal choice forbids reinference at this boundary.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Request<'a>
impl<'a> RefUnwindSafe for Request<'a>
impl<'a> Send for Request<'a>
impl<'a> Sync for Request<'a>
impl<'a> Unpin for Request<'a>
impl<'a> UnsafeUnpin for Request<'a>
impl<'a> UnwindSafe for Request<'a>
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