Trait json_ld::Relabel

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

    // Provided method
    fn relabel<G>(
        &mut self,
        generator: &mut G,
        relabeling: &mut HashMap<B, Id<T, B>>
    )
       where G: Generator,
             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, Id<T, B>> )
where N: Vocabulary<Iri = T, BlankId = B>, G: Generator<N>, T: Clone + Eq + Hash, B: Clone + Eq + Hash,

Provided Methods§

source

fn relabel<G>( &mut self, generator: &mut G, relabeling: &mut HashMap<B, Id<T, B>> )
where G: Generator, T: Clone + Eq + Hash, B: Clone + Eq + Hash, (): Vocabulary<Iri = T, BlankId = B>,

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T, B> Relabel<T, B> for Vec<Indexed<Node<T, B>>>

source§

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

Implementors§

source§

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

source§

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

source§

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