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

Struct for building a source map (v3)

Implementations

Original line and original column are one indexed

Encodes the results into a string and builds the JSON representation thingy

TODO not 100% certain that this code is a the correct implementation

TODO are the accounts for SourceId::null valid here…?

Trait Implementations

Returns the “default value” for a type. Read more

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.