[−][src]Trait jsonc_parser::common::Ranged
Represents an object that has a range in the text.
Required methods
Loading content...Provided methods
pub fn start(&self) -> usize
[src]
Gets the index of the first character in the text.
pub fn start_line(&self) -> usize
[src]
Gets the line number of the start position in the text.
pub fn end(&self) -> usize
[src]
Gets the index after the last character in the text.
pub fn end_line(&self) -> usize
[src]
Gets the line number of the end position in the text.
pub fn text<'a>(&self, text: &'a str) -> &'a str
[src]
Gets the text from the provided string.
pub fn start_position(&self) -> Position
[src]
Gets the start position.
pub fn end_position(&self) -> Position
[src]
Gets the end position.
pub fn width(&self) -> usize
[src]
Gets the end position minus the start of the range.