Crate rustbolt_sources

Source
Expand description

Rusty webpack-sources port.

Modules§

stream_chunks
Reexport StreamChunks related types.

Macros§

m
An convenient way to create a Mapping.
mappings
An convenient way to create Mappings.

Structs§

CachedSource
It tries to reused cached results from other methods to avoid calculations, usually used after modify is finished.
ConcatSource
Concatenate multiple Sources to a single Source.
MapOptions
Options for Source::map.
Mapping
Represent a Mapping information of source map.
OriginalLocation
Represent original position information of a Mapping.
OriginalSource
Represents source code, it will create source map for the source code, but the source map is created by splitting the source code at typical statement borders (;, {, }).
RawBufferSource
A buffer variant of RawSource.
RawSource
Represents source code without source map, it will not create source map for the source code.
RawStringSource
A string variant of RawSource.
ReplaceSource
Decorates a Source with replacements and insertions of source code, usually used in dependencies
Rope
A rope data structure.
SourceMap
The source map created by Source::map.
SourceMapSource
Represents source code with source map, optionally having an additional source map for the original source.
SourceMapSourceOptions
Options for SourceMapSource::new.
WithoutOriginalOptions
An convenient options for SourceMapSourceOptions, original_source and inner_source_map will be None, remove_original_source will be false.

Enums§

Error
Error for this crate.
ReplacementEnforce
Enforce replacement order when two replacement start and end are both equal

Traits§

Source
Source abstraction, webpack-sources docs.
SourceExt
Extension methods for Source.

Functions§

decode_mappings
Decodes the given mappings string into an iterator of Mapping items.
encode_mappings
Encodes the given iterator of Mapping items into a String.

Type Aliases§

BoxSource
An alias for Box<dyn Source>.
Result
An alias for std::result::Result<T, rustbolt_sources::Error>.