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