Struct parables_testing::source_map::SourceMap [−][src]
pub struct SourceMap { /* fields omitted */ }
A parsed source map.
Methods
impl SourceMap
[src]
impl SourceMap
pub fn parse(input: &str) -> Result<SourceMap, Error>
[src]
pub fn parse(input: &str) -> Result<SourceMap, Error>
Parse the given source map.
pub fn find_mapping(&self, pc: usize) -> Option<&Mapping>
[src]
pub fn find_mapping(&self, pc: usize) -> Option<&Mapping>
Find the mapping for a given program counter.
Trait Implementations
impl Debug for SourceMap
[src]
impl Debug for SourceMap
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 Clone for SourceMap
[src]
impl Clone for SourceMap
fn clone(&self) -> SourceMap
[src]
fn clone(&self) -> SourceMap
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 PartialEq for SourceMap
[src]
impl PartialEq for SourceMap
fn eq(&self, other: &SourceMap) -> bool
[src]
fn eq(&self, other: &SourceMap) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &SourceMap) -> bool
[src]
fn ne(&self, other: &SourceMap) -> bool
This method tests for !=
.
impl Eq for SourceMap
[src]
impl Eq for SourceMap