Trait 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>,

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.

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>