Struct mediawiki_parser::Span
[−]
[src]
pub struct Span { pub start: Position, pub end: Position, }
Holds position information (start and end) for one element
Fields
start: Position
end: Position
Methods
impl Span
[src]
pub fn any() -> Self
[src]
pub fn new(posl: usize, posr: usize, source_lines: &[SourceLine]) -> Self
[src]
Trait Implementations
impl Debug for Span
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for Span
[src]
fn eq(&self, __arg_0: &Span) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Span) -> bool
[src]
This method tests for !=
.
impl Clone for Span
[src]
fn clone(&self) -> Span
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more