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

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: Vec<Option<Symbol>>

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

to_external: Vec<Symbol>

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

Methods

impl Mapping[src]

pub fn new(num_external: usize) -> Self[src]

Creates a new instance of Mapping.

pub fn translate(&mut self, other: &Self)[src]

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

Trait Implementations

impl Clone for Mapping[src]

impl Default for Mapping[src]

impl Debug for Mapping[src]

impl Serialize for Mapping[src]

impl<'de> Deserialize<'de> for Mapping[src]

Auto Trait Implementations

impl Send for Mapping

impl Sync for Mapping

impl Unpin for Mapping

impl UnwindSafe for Mapping

impl RefUnwindSafe for Mapping

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]