Skip to main content

IdentifyAll

Trait IdentifyAll 

Source
pub trait IdentifyAll<T, B> {
    // Required method
    fn identify_all_with<N: VocabularyMut<Iri = T, BlankId = B>, G: LocalGenerator>(
        &mut self,
        vocabulary: &mut N,
        generator: &mut G,
    ) -> Result<(), GeneratedIdError>
       where T: Eq + Hash,
             B: Eq + Hash;

    // Provided method
    fn identify_all<G: LocalGenerator>(
        &mut self,
        generator: &mut G,
    ) -> Result<(), GeneratedIdError>
       where T: Eq + Hash,
             B: Eq + Hash,
             (): Vocabulary<Iri = T, BlankId = B> { ... }
}
Expand description

Fragments whose anonymous nodes can all be given identifiers.

Required Methods§

Source

fn identify_all_with<N: VocabularyMut<Iri = T, BlankId = B>, G: LocalGenerator>( &mut self, vocabulary: &mut N, generator: &mut G, ) -> Result<(), GeneratedIdError>
where T: Eq + Hash, B: Eq + Hash,

Assigns an identifier to every anonymous node, interning them in the given vocabulary.

§Errors

Returns an error when the generator runs out of identifiers.

Provided Methods§

Source

fn identify_all<G: LocalGenerator>( &mut self, generator: &mut G, ) -> Result<(), GeneratedIdError>
where T: Eq + Hash, B: Eq + Hash, (): Vocabulary<Iri = T, BlankId = B>,

Assigns an identifier to every anonymous node.

§Errors

Returns an error when the generator runs out of identifiers.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T, B> IdentifyAll<T, B> for FlattenedDocument<T, B>