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