Struct rspack_sources::SourceMapSource
source · pub struct SourceMapSource { /* private fields */ }
Expand description
Represents source code with source map, optionally having an additional source map for the original source.
Implementations§
source§impl SourceMapSource
impl SourceMapSource
sourcepub fn new<V, N, O>(options: O) -> Self
pub fn new<V, N, O>(options: O) -> Self
Create a SourceMapSource with SourceMapSourceOptions.
Trait Implementations§
source§impl Clone for SourceMapSource
impl Clone for SourceMapSource
source§fn clone(&self) -> SourceMapSource
fn clone(&self) -> SourceMapSource
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SourceMapSource
impl Debug for SourceMapSource
source§impl Hash for SourceMapSource
impl Hash for SourceMapSource
source§impl PartialEq for SourceMapSource
impl PartialEq for SourceMapSource
source§impl Source for SourceMapSource
impl Source for SourceMapSource
source§impl StreamChunks for SourceMapSource
impl StreamChunks for SourceMapSource
source§fn stream_chunks(
&self,
options: &MapOptions,
on_chunk: OnChunk<'_>,
on_source: OnSource<'_>,
on_name: OnName<'_>,
) -> GeneratedInfo
fn stream_chunks( &self, options: &MapOptions, on_chunk: OnChunk<'_>, on_source: OnSource<'_>, on_name: OnName<'_>, ) -> GeneratedInfo
StreamChunks abstraction
impl Eq for SourceMapSource
Auto Trait Implementations§
impl !Freeze for SourceMapSource
impl RefUnwindSafe for SourceMapSource
impl Send for SourceMapSource
impl Sync for SourceMapSource
impl Unpin for SourceMapSource
impl UnwindSafe for SourceMapSource
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