Struct rspack_sources::WithoutOriginalOptions
source · pub struct WithoutOriginalOptions<V, N> {
pub value: V,
pub name: N,
pub source_map: SourceMap,
}
Expand description
An convenient options for SourceMapSourceOptions, original_source
and
inner_source_map
will be None
, remove_original_source
will be false.
Fields§
§value: V
The source code.
name: N
Name of the file.
source_map: SourceMap
The source map of the source code.
Trait Implementations§
source§impl<V: Clone, N: Clone> Clone for WithoutOriginalOptions<V, N>
impl<V: Clone, N: Clone> Clone for WithoutOriginalOptions<V, N>
source§fn clone(&self) -> WithoutOriginalOptions<V, N>
fn clone(&self) -> WithoutOriginalOptions<V, N>
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<V, N> From<WithoutOriginalOptions<V, N>> for SourceMapSourceOptions<V, N>
impl<V, N> From<WithoutOriginalOptions<V, N>> for SourceMapSourceOptions<V, N>
source§fn from(options: WithoutOriginalOptions<V, N>) -> Self
fn from(options: WithoutOriginalOptions<V, N>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<V, N> !Freeze for WithoutOriginalOptions<V, N>
impl<V, N> RefUnwindSafe for WithoutOriginalOptions<V, N>where
V: RefUnwindSafe,
N: RefUnwindSafe,
impl<V, N> Send for WithoutOriginalOptions<V, N>
impl<V, N> Sync for WithoutOriginalOptions<V, N>
impl<V, N> Unpin for WithoutOriginalOptions<V, N>
impl<V, N> UnwindSafe for WithoutOriginalOptions<V, N>where
V: UnwindSafe,
N: UnwindSafe,
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