pub struct ConcatBuilder { /* private fields */ }Expand description
Builder for concatenating multiple source maps into one.
Each added source map is offset by a line delta, producing a single combined map. Sources and names are deduplicated across inputs.
Implementations§
Source§impl ConcatBuilder
impl ConcatBuilder
Sourcepub fn add_map(&mut self, sm: &SourceMap, line_offset: u32)
pub fn add_map(&mut self, sm: &SourceMap, line_offset: u32)
Add a source map to the concatenated output.
line_offset is the number of lines to shift all mappings by
(i.e. the line at which this chunk starts in the output).
Auto Trait Implementations§
impl Freeze for ConcatBuilder
impl RefUnwindSafe for ConcatBuilder
impl Send for ConcatBuilder
impl Sync for ConcatBuilder
impl Unpin for ConcatBuilder
impl UnsafeUnpin for ConcatBuilder
impl UnwindSafe for ConcatBuilder
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