pub struct Decision {
pub reason: Reason,
pub score: f64,
pub replacement: Option<Vec<u16>>,
}Expand description
A correction proposal; never grants native write authority.
Fields§
§reason: ReasonWhy the word is corrected or left as typed.
score: f64The log10 score of the final comparison, or the Zipf margin of a yielding known word; zero when the decision ended before either.
replacement: Option<Vec<u16>>The candidate, present only with Reason::Correction. The map converts key by key, so
shifted keys stay capitals.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Decision
impl RefUnwindSafe for Decision
impl Send for Decision
impl Sync for Decision
impl Unpin for Decision
impl UnsafeUnpin for Decision
impl UnwindSafe for Decision
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