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<'a> StreamChunks<'a> for SourceMapSource
impl<'a> StreamChunks<'a> for SourceMapSource
source§fn stream_chunks(
&'a self,
options: &MapOptions,
on_chunk: OnChunk<'_, 'a>,
on_source: OnSource<'_, 'a>,
on_name: OnName<'_, 'a>,
) -> GeneratedInfo
fn stream_chunks( &'a self, options: &MapOptions, on_chunk: OnChunk<'_, 'a>, on_source: OnSource<'_, 'a>, on_name: OnName<'_, 'a>, ) -> 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)