Trait json_ld::Relabel

source ·
pub trait Relabel<T, B, M> {
    // Required method
    fn relabel_with<N, G>(
        &mut self,
        vocabulary: &mut N,
        generator: &mut G,
        relabeling: &mut HashMap<B, Meta<Id<T, B>, M>, BuildHasherDefault<AHasher>, Global>
    )
       where N: Vocabulary<Iri = T, BlankId = B>,
             G: MetaGenerator<N, M>,
             M: Clone,
             T: Clone + Eq + Hash,
             B: Clone + Eq + Hash;

    // Provided method
    fn relabel<G>(
        &mut self,
        generator: &mut G,
        relabeling: &mut HashMap<B, Meta<Id<T, B>, M>, BuildHasherDefault<AHasher>, Global>
    )
       where G: MetaGenerator<(), M>,
             M: Clone,
             T: Clone + Eq + Hash,
             B: Clone + Eq + Hash,
             (): Vocabulary<Iri = T, BlankId = B> { ... }
}

Required Methods§

source

fn relabel_with<N, G>( &mut self, vocabulary: &mut N, generator: &mut G, relabeling: &mut HashMap<B, Meta<Id<T, B>, M>, BuildHasherDefault<AHasher>, Global> )where N: Vocabulary<Iri = T, BlankId = B>, G: MetaGenerator<N, M>, M: Clone, T: Clone + Eq + Hash, B: Clone + Eq + Hash,

Provided Methods§

source

fn relabel<G>( &mut self, generator: &mut G, relabeling: &mut HashMap<B, Meta<Id<T, B>, M>, BuildHasherDefault<AHasher>, Global> )where G: MetaGenerator<(), M>, M: Clone, T: Clone + Eq + Hash, B: Clone + Eq + Hash, (): Vocabulary<Iri = T, BlankId = B>,

Implementations on Foreign Types§

source§

impl<T, B, M> Relabel<T, B, M> for Vec<Meta<Indexed<Node<T, B, M>, M>, M>, Global>

source§

fn relabel_with<N, G>( &mut self, vocabulary: &mut N, generator: &mut G, relabeling: &mut HashMap<B, Meta<Id<T, B>, M>, BuildHasherDefault<AHasher>, Global> )where N: Vocabulary<Iri = T, BlankId = B>, G: MetaGenerator<N, M>, M: Clone, T: Clone + Eq + Hash, B: Clone + Eq + Hash,

Implementors§

source§

impl<T, B, M> Relabel<T, B, M> for Object<T, B, M>

source§

impl<T, B, M> Relabel<T, B, M> for List<T, B, M>

source§

impl<T, B, M> Relabel<T, B, M> for Node<T, B, M>