pub struct SourceMapView { /* private fields */ }
Expand description

Represents a source map.

Implementations

Constructs a sourcemap from a slice.

If the sourcemap is an index it is being flattened. If flattening is not possible then an error is raised.

Looks up a token and returns it.

Returns a token for a specific index.

Returns the number of tokens.

Returns a source view for the given source.

Returns the source name for an index.

Returns the number of sources.

Looks up a token and the original function name.

This is similar to lookup_token but if a minified function name and the sourceview to the minified source is available this function will also resolve the original function name. This is used to fully resolve tracebacks.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.