pub struct Correction {
pub span: Range<usize>,
pub original: String,
pub suggestions: Vec<String>,
}Expand description
A single suggested fix for one span of the checked text.
Fields§
§span: Range<usize>Byte range of the flagged word within the checked text.
original: StringThe original (flagged) text covered by span.
suggestions: Vec<String>Replacement candidates, best first.
Trait Implementations§
Source§impl Clone for Correction
impl Clone for Correction
Source§fn clone(&self) -> Correction
fn clone(&self) -> Correction
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 moreAuto Trait Implementations§
impl Freeze for Correction
impl RefUnwindSafe for Correction
impl Send for Correction
impl Sync for Correction
impl Unpin for Correction
impl UnsafeUnpin for Correction
impl UnwindSafe for Correction
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