Struct source_map::StringWithSourceMap
source · pub struct StringWithSourceMap(_, _);
Implementations§
Trait Implementations§
source§impl Default for StringWithSourceMap
impl Default for StringWithSourceMap
source§fn default() -> StringWithSourceMap
fn default() -> StringWithSourceMap
Returns the “default value” for a type. Read more
source§impl ToString for StringWithSourceMap
impl ToString for StringWithSourceMap
fn push(&mut self, chr: char)
fn push_new_line(&mut self)
fn push_str(&mut self, slice: &str)
source§fn push_str_contains_new_line(&mut self, slice: &str)
fn push_str_contains_new_line(&mut self, slice: &str)
Used to push strings that may contain new lines
source§fn add_mapping(&mut self, source_span: &Span)
fn add_mapping(&mut self, source_span: &Span)
Adds a mapping of the from a original position in the source to the position in the current buffer