Struct english_lint::Hint
[−]
[src]
pub struct Hint { pub group: Option<&'static str>, pub value: String, pub line: Option<usize>, pub start: usize, pub end: usize, }
Suggestion on which words to change
Fields
group: Option<&'static str>
Lint group that caught this word
value: String
The actual word
line: Option<usize>
Line this word appeared on (only set when supplied by calling function,
should always be present when using the main lint
function.)
start: usize
Index the word starts at
end: usize
Index the word ends at
Trait Implementations
impl Debug for Hint
[src]
impl PartialEq for Hint
[src]
fn eq(&self, __arg_0: &Hint) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Hint) -> bool
This method tests for !=
.
impl Eq for Hint
[src]
impl Clone for Hint
[src]
fn clone(&self) -> Hint
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more