Trait ReverseTermInterpretationMut

Source
pub trait ReverseTermInterpretationMut: ReverseIdInterpretationMut + ReverseLiteralInterpretationMut {
    // Provided methods
    fn assign_term(
        &mut self,
        resource: &Self::Resource,
        term: Term<Id<Self::Iri, Self::BlankId>, Self::Literal>,
    ) -> bool { ... }
    fn assign_terms(
        &mut self,
        f: impl FnMut(&Self, &Self::Resource) -> Option<Term<Id<Self::Iri, Self::BlankId>, Self::Literal>>,
    )
       where Self::Resource: Clone,
             Self: TraversableInterpretation { ... }
    fn generate_ids<V: IriVocabulary + BlankIdVocabulary>(
        &mut self,
        vocabulary: &mut V,
        generator: &mut impl Generator<V>,
    )
       where Self::Resource: Clone,
             Self: TraversableInterpretation + ReverseTermInterpretationMut<Iri = V::Iri, BlankId = V::BlankId> { ... }
}
Expand description

Mutable reverse term identifier interpretation.

Used to associate terms to resources.

Provided Methods§

Source

fn assign_term( &mut self, resource: &Self::Resource, term: Term<Id<Self::Iri, Self::BlankId>, Self::Literal>, ) -> bool

Assigns the given term to the given resource.

Source

fn assign_terms( &mut self, f: impl FnMut(&Self, &Self::Resource) -> Option<Term<Id<Self::Iri, Self::BlankId>, Self::Literal>>, )

Assigns a term to all the interpreted resources.

Source

fn generate_ids<V: IriVocabulary + BlankIdVocabulary>( &mut self, vocabulary: &mut V, generator: &mut impl Generator<V>, )
where Self::Resource: Clone, Self: TraversableInterpretation + ReverseTermInterpretationMut<Iri = V::Iri, BlankId = V::BlankId>,

Generates and assign a node identifier for all the resources that don’t have any term, using the given generator.

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.

Implementors§