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§
Sourcefn identify_all_with<N: VocabularyMut<Iri = T, BlankId = B>, G: LocalGenerator>(
&mut self,
vocabulary: &mut N,
generator: &mut G,
) -> Result<(), GeneratedIdError>
fn identify_all_with<N: VocabularyMut<Iri = T, BlankId = B>, G: LocalGenerator>( &mut self, vocabulary: &mut N, generator: &mut G, ) -> Result<(), GeneratedIdError>
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§
Sourcefn identify_all<G: LocalGenerator>(
&mut self,
generator: &mut G,
) -> Result<(), GeneratedIdError>
fn identify_all<G: LocalGenerator>( &mut self, generator: &mut G, ) -> Result<(), GeneratedIdError>
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".