Struct mediawiki_parser::SourceLine
[−]
[src]
pub struct SourceLine<'input> { pub start: usize, pub content: &'input str, pub end: usize, }
Position of a source line of code.
Fields
start: usize
content: &'input str
end: usize
Methods
impl<'input> SourceLine<'input>
[src]
pub fn starts_line(pos: usize, slocs: &[SourceLine]) -> bool
[src]
checks if pos
is at a line start
Trait Implementations
impl<'input> Debug for SourceLine<'input>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<'input> PartialEq for SourceLine<'input>
[src]
fn eq(&self, __arg_0: &SourceLine<'input>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &SourceLine<'input>) -> bool
[src]
This method tests for !=
.