Struct source_map::Counter
source · pub struct Counter(_);
Expand description
Used for getting byte count of the result when built into string without building the string
Implementations§
Trait Implementations§
source§impl ToString for Counter
impl ToString for Counter
fn push(&mut self, chr: char)
fn push_new_line(&mut self)
fn push_str(&mut self, string: &str)
source§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
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