[][src]Struct superfusion::index::IndexMapping

pub struct IndexMapping<'a> { /* fields omitted */ }

List of mapping from one Index to another

This is used for each file to lookup the Index's path that it referenced to. Usually the Index's path can be compute from the given Index itself but due to 'renaming strategy' feature, there is a need for this lookup.

Implementations

impl<'a> IndexMapping<'a>[src]

pub fn new(map: HashMap<&'a Index, Index>) -> Self[src]

pub fn get(&self, index: &'a Index) -> Option<&Index>[src]

pub fn apply_mapping<F: File>(&self, file: F) -> F[src]

Apply mapping to the given file's relationship

Trait Implementations

impl<'a> Clone for IndexMapping<'a>[src]

impl<'a> Debug for IndexMapping<'a>[src]

impl<'a> Default for IndexMapping<'a>[src]

impl<'a> FromIterator<(&'a Index, Index)> for IndexMapping<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for IndexMapping<'a>

impl<'a> Send for IndexMapping<'a>

impl<'a> Sync for IndexMapping<'a>

impl<'a> Unpin for IndexMapping<'a>

impl<'a> UnwindSafe for IndexMapping<'a>

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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.