Trait PathResolver

Source
pub trait PathResolver {
    // Required methods
    fn new<'a, T>(k1: T, k2: T) -> Self
       where T: Iterator<Item = &'a String>;
    fn k1tok2(&self, k1: &String) -> String;
    fn k2tok1(&self, k2: &String) -> String;
}

Required Methods§

Source

fn new<'a, T>(k1: T, k2: T) -> Self
where T: Iterator<Item = &'a String>,

Object implementing this trait can determine that two different keys from src and tgt represents the same object and thus must be mapped

Source

fn k1tok2(&self, k1: &String) -> String

k1 is the key from src which must be mapped to tgt (k2) key or to be returned not changed

Source

fn k2tok1(&self, k2: &String) -> String

k2 is the key from tgt which must be mapped to src (k1) key or to be returned not changed

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§