Struct source_map::Counter
source · pub struct Counter(_);
Expand description
Used for getting byte count of the result if serialized
Implementations
Trait Implementations
sourceimpl 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)
sourcefn 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
sourcefn 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
Auto Trait Implementations
impl RefUnwindSafe for Counter
impl Send for Counter
impl Sync for Counter
impl Unpin for Counter
impl UnwindSafe for Counter
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more