pub struct WordSuggestions {
pub word: String,
pub options: Vec<String>,
}Expand description
Ranked alternative spellings for one corrected word, for the review
popup’s per-field suggestion dropdown. options is best-first and
the first entry is normally the applied correction; the popup drops
whatever matches the field’s current text and shows the rest.
Fields§
§word: StringThe corrected word these options belong to.
options: Vec<String>Candidate replacements, best first.
Trait Implementations§
Source§impl Clone for WordSuggestions
impl Clone for WordSuggestions
Source§fn clone(&self) -> WordSuggestions
fn clone(&self) -> WordSuggestions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WordSuggestions
impl Debug for WordSuggestions
Source§impl<'de> Deserialize<'de> for WordSuggestions
impl<'de> Deserialize<'de> for WordSuggestions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for WordSuggestions
impl RefUnwindSafe for WordSuggestions
impl Send for WordSuggestions
impl Sync for WordSuggestions
impl Unpin for WordSuggestions
impl UnsafeUnpin for WordSuggestions
impl UnwindSafe for WordSuggestions
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