pub struct BasicConsumer {
pub source_map: SourceMapJson,
/* private fields */
}Fields§
§source_map: SourceMapJsonImplementations§
Source§impl BasicConsumer
impl BasicConsumer
pub fn new(source_map_raw: &str, source_map_url: Option<&str>) -> Self
pub fn from_source_map_json( source_map: SourceMapJson, source_map_url: Option<&str>, ) -> Self
pub fn from_source_map( source_map: &mut SourceMapGenerator, source_map_url: Option<&str>, ) -> Self
pub fn get_sources(&self) -> Vec<String>
pub fn all_generated_position_for( &mut self, source: &str, original_line: i32, original_column: Option<i32>, ) -> Vec<Mapping>
pub fn compute_column_spans(&mut self)
pub fn original_position_for( &mut self, generated: Position, bias: Option<Bias>, ) -> Option<Mapping>
pub fn has_contents_of_all_sources(&self) -> bool
pub fn source_content_for( &mut self, source: &str, panic_on_missing: Option<bool>, ) -> Option<String>
pub fn generated_position_for( &mut self, source: &str, original_line: i32, original_column: i32, bias: Option<Bias>, ) -> Option<Mapping>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BasicConsumer
impl RefUnwindSafe for BasicConsumer
impl Send for BasicConsumer
impl Sync for BasicConsumer
impl Unpin for BasicConsumer
impl UnwindSafe for BasicConsumer
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