Trait source_map::ToString [−][src]
pub trait ToString {
fn push(&mut self, chr: char);
fn push_new_line(&mut self);
fn push_str(&mut self, string: &str);
fn push_str_contains_new_line(&mut self, string: &str);
fn add_mapping(
&mut self,
original_line: usize,
original_column: usize,
source_id: SourceId
);
}
Required methods
fn push_new_line(&mut self)
fn push_str_contains_new_line(&mut self, string: &str)
fn push_str_contains_new_line(&mut self, string: &str)
Used to push strings that may contain new lines
fn add_mapping(
&mut self,
original_line: usize,
original_column: usize,
source_id: SourceId
)
fn add_mapping(
&mut self,
original_line: usize,
original_column: usize,
source_id: SourceId
)
Adds a mapping of the from a original position in the source to the position in the current buffer