[−][src]Struct superfusion::index::IndexMapping
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]
fn clone(&self) -> IndexMapping<'a>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> Debug for IndexMapping<'a>
[src]
impl<'a> Default for IndexMapping<'a>
[src]
fn default() -> 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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,