Struct cfg::remap::Mapping [] [src]

pub struct Mapping {
    pub to_internal: Vec<Option<Symbol>>,
    pub to_external: Vec<Symbol>,
}

Contains maps for translation between internal and external symbols.

Fields

to_internal

An array of internal symbols, indexed by external symbol ID.

to_external

An array of external symbols, indexed by internal symbol ID.

Methods

impl Mapping

fn new(num_external: usize) -> Self

Creates a new instance of Mapping.

fn translate(&mut self, other: &Self)

Translates symbols in this map using another symbol map. This map becomes a combination of both mappings.