Struct source_map::StringWithSourceMap
source · pub struct StringWithSourceMap(/* private fields */);
Expand description
Building a source along with its source map
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)
source§fn push_str(&mut self, slice: &str)
fn push_str(&mut self, slice: &str)
Use ToString::push_str_contains_new_line if
string
could contain new linessource§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
Auto Trait Implementations§
impl RefUnwindSafe for StringWithSourceMap
impl Send for StringWithSourceMap
impl Sync for StringWithSourceMap
impl Unpin for StringWithSourceMap
impl UnwindSafe for StringWithSourceMap
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more