Struct source_map::StringWithSourceMap
source · pub struct StringWithSourceMap(_, _);
Implementations
Trait Implementations
sourceimpl Default for StringWithSourceMap
impl Default for StringWithSourceMap
sourcefn default() -> StringWithSourceMap
fn default() -> StringWithSourceMap
Returns the “default value” for a type. Read more
sourceimpl ToString for StringWithSourceMap
impl ToString for StringWithSourceMap
fn push(&mut self, chr: char)
fn push_new_line(&mut self)
fn push_str(&mut self, slice: &str)
sourcefn 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
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 StringWithSourceMap
impl Send for StringWithSourceMap
impl Sync for StringWithSourceMap
impl Unpin for StringWithSourceMap
impl UnwindSafe for StringWithSourceMap
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