Struct ara_source::SourceMap
source · Fields§
§sources: Vec<Source>
Implementations§
source§impl SourceMap
impl SourceMap
pub fn new(sources: Vec<Source>) -> SourceMap
pub fn add(&mut self, source: Source)
sourcepub fn get(&self, index: usize) -> Result<&Source, Error>
pub fn get(&self, index: usize) -> Result<&Source, Error>
Get a source by its index.
If the source is not found, Error::SourceNotFound
is returned.