pub struct SpellCheckResults {
pub spell_checked_text: String,
pub suggestion_spans: Vec<SuggestionSpan>,
}Expand description
A data structure grouping together the SuggestionSpans and related text of
results returned by a spell checker.
Fields§
§spell_checked_text: StringThe text that the suggestion_spans correspond to.
suggestion_spans: Vec<SuggestionSpan>The spell check results of the spell_checked_text.
See also:
SuggestionSpan, the ranges of misspelled text and corresponding replacement suggestions.
Implementations§
Source§impl SpellCheckResults
impl SpellCheckResults
Sourcepub fn new(
spell_checked_text: impl Into<String>,
suggestion_spans: Vec<SuggestionSpan>,
) -> SpellCheckResults
pub fn new( spell_checked_text: impl Into<String>, suggestion_spans: Vec<SuggestionSpan>, ) -> SpellCheckResults
Creates results based off those received by spell checking some text input.
Trait Implementations§
Source§impl Clone for SpellCheckResults
impl Clone for SpellCheckResults
Source§impl Debug for SpellCheckResults
impl Debug for SpellCheckResults
Source§impl Display for SpellCheckResults
impl Display for SpellCheckResults
impl Eq for SpellCheckResults
Source§impl Hash for SpellCheckResults
impl Hash for SpellCheckResults
Source§impl PartialEq for SpellCheckResults
impl PartialEq for SpellCheckResults
impl StructuralPartialEq for SpellCheckResults
Auto Trait Implementations§
impl Freeze for SpellCheckResults
impl RefUnwindSafe for SpellCheckResults
impl Send for SpellCheckResults
impl Sync for SpellCheckResults
impl Unpin for SpellCheckResults
impl UnsafeUnpin for SpellCheckResults
impl UnwindSafe for SpellCheckResults
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.