#[repr(u8)]pub enum Reason {
Correction = 0,
Ineligible = 1,
Personal = 2,
Known = 3,
Forbidden = 4,
Weak = 5,
DictionariesMissing = 6,
ExplicitIntent = 7,
}Expand description
Decision reasons, numbered as in the reference vectors and the probe output.
Variants§
Correction = 0
Candidate passed the reference ranking threshold.
Ineligible = 1
Token, mode, case or policy is ineligible.
Personal = 2
The typed word, or its core, is recognized or rare in a vocabulary source.
Known = 3
The core is a word of the source lexicon and does not yield.
Forbidden = 4
The candidate is forbidden in a vocabulary source.
Weak = 5
The candidate is absent from the target lexicon, below the minimum Zipf score, or its score is below the length-adjusted threshold.
DictionariesMissing = 6
The English or the Russian Vim source is missing; learned words do not count.
ExplicitIntent = 7
Preserve explicit manual/reversal intent.
Trait Implementations§
impl Copy for Reason
impl Eq for Reason
impl StructuralPartialEq for Reason
Auto Trait Implementations§
impl Freeze for Reason
impl RefUnwindSafe for Reason
impl Send for Reason
impl Sync for Reason
impl Unpin for Reason
impl UnsafeUnpin for Reason
impl UnwindSafe for Reason
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