Struct source_map::ToStringer [−][src]
pub struct ToStringer<'a>(_, _);
A structure with a buffer and optional corresponding SourceMap
Implementations
impl<'a> ToStringer<'a>
[src]
impl<'a> ToStringer<'a>
[src]pub fn with_source_map(
buf: &'a mut String,
source_map: &'a mut SourceMap
) -> Self
[src]
buf: &'a mut String,
source_map: &'a mut SourceMap
) -> Self
pub fn without_source_map(buf: &'a mut String) -> Self
[src]
impl ToStringer<'_>
[src]
impl ToStringer<'_>
[src]pub fn push(&mut self, chr: char)
[src]
pub fn push_new_line(&mut self)
[src]
pub fn push_str(&mut self, slice: &str)
[src]
pub fn push_str_contains_new_line(&mut self, slice: &str)
[src]
pub fn push_str_contains_new_line(&mut self, slice: &str)
[src]Used to push slices that may contain new lines
pub fn add_mapping(
&mut self,
original_line: usize,
original_column: usize,
source_id: SourceId
)
[src]
pub fn add_mapping(
&mut self,
original_line: usize,
original_column: usize,
source_id: SourceId
)
[src]Adds a mapping of the from a original position in the source to the position in the current buffer