Struct ara_source::SourceMap

source ·
pub struct SourceMap {
    pub sources: Vec<Source>,
}

Fields§

§sources: Vec<Source>

Implementations§

Get a source by its index.

If the source is not found, Error::SourceNotFound is returned.

Find a source by its origin.

If the source is not found, Error::SourceNotFound is returned.

Merge two source maps.

The sources of the other source map are appended to the current source map.

The other source map is emptied.

Trait Implementations§

Formats the value using the given formatter. 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.