pub struct Indexed { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl BlankIdInterpretation<BlankIdIndex> for Indexed
impl BlankIdInterpretation<BlankIdIndex> for Indexed
Source§fn blank_id_interpretation(
&self,
blank_id: &BlankIdIndex,
) -> Option<Self::Resource>
fn blank_id_interpretation( &self, blank_id: &BlankIdIndex, ) -> Option<Self::Resource>
Returns the interpretation of the given blank node identifier, if any.
fn lexical_blank_id_interpretation(
&self,
vocabulary: &impl BlankIdVocabulary<BlankId = B>,
blank_id: &BlankId,
) -> Option<Self::Resource>where
B: Sized,
Source§impl BlankIdInterpretationMut<BlankIdIndex> for Indexed
impl BlankIdInterpretationMut<BlankIdIndex> for Indexed
Source§fn interpret_blank_id(&mut self, blank_id: BlankIdIndex) -> Self::Resource
fn interpret_blank_id(&mut self, blank_id: BlankIdIndex) -> Self::Resource
Interprets the given blank node identifier.
fn interpret_lexical_blank_id( &mut self, vocabulary: &mut impl BlankIdVocabularyMut<BlankId = B>, blank_id: &BlankId, ) -> Self::Resource
fn interpret_owned_lexical_blank_id( &mut self, vocabulary: &mut impl BlankIdVocabularyMut<BlankId = B>, blank_id: BlankIdBuf, ) -> Self::Resource
Source§impl Interpretation for Indexed
impl Interpretation for Indexed
Source§type Resource = ResourceIndex
type Resource = ResourceIndex
Resource identifier type.
Source§impl<V> InterpretationMut<V> for Indexed
impl<V> InterpretationMut<V> for Indexed
Source§fn new_resource(&mut self, _vocabulary: &mut V) -> Self::Resource
fn new_resource(&mut self, _vocabulary: &mut V) -> Self::Resource
Creates a new resource.
Source§impl IriInterpretation<IriIndex> for Indexed
impl IriInterpretation<IriIndex> for Indexed
Source§fn iri_interpretation(&self, iri: &IriIndex) -> Option<Self::Resource>
fn iri_interpretation(&self, iri: &IriIndex) -> Option<Self::Resource>
Returns the interpretation of the given IRI, if any.
fn lexical_iri_interpretation(
&self,
vocabulary: &impl IriVocabulary<Iri = I>,
iri: &Iri,
) -> Option<Self::Resource>where
I: Sized,
Source§impl IriInterpretationMut<IriIndex> for Indexed
impl IriInterpretationMut<IriIndex> for Indexed
Source§fn interpret_iri(&mut self, iri: IriIndex) -> Self::Resource
fn interpret_iri(&mut self, iri: IriIndex) -> Self::Resource
Interprets the given IRI.
fn interpret_lexical_iri( &mut self, vocabulary: &mut impl IriVocabularyMut<Iri = I>, iri: &Iri, ) -> Self::Resource
fn interpret_owned_lexical_iri( &mut self, vocabulary: &mut impl IriVocabularyMut<Iri = I>, iri: IriBuf, ) -> Self::Resource
Source§impl LiteralInterpretation<LiteralIndex> for Indexed
impl LiteralInterpretation<LiteralIndex> for Indexed
Source§fn literal_interpretation(
&self,
literal: &LiteralIndex,
) -> Option<Self::Resource>
fn literal_interpretation( &self, literal: &LiteralIndex, ) -> Option<Self::Resource>
Returns the interpretation of the given literal value, if any.
fn lexical_literal_interpretation<V: LiteralVocabulary<Literal = L>>( &self, vocabulary: &V, literal: LiteralRef<'_, V::Iri>, ) -> Option<Self::Resource>
Source§impl LiteralInterpretationMut<LiteralIndex> for Indexed
impl LiteralInterpretationMut<LiteralIndex> for Indexed
Source§fn interpret_literal(&mut self, literal: LiteralIndex) -> Self::Resource
fn interpret_literal(&mut self, literal: LiteralIndex) -> Self::Resource
Interprets the given literal value.
fn interpret_lexical_literal<V: LiteralVocabularyMut<Literal = L>>( &mut self, vocabulary: &mut V, literal: LiteralRef<'_, V::Iri>, ) -> Self::Resource
fn interpret_owned_lexical_literal<V: LiteralVocabularyMut<Literal = L>>( &mut self, vocabulary: &mut V, literal: Literal<V::Iri>, ) -> Self::Resource
fn interpret_full_lexical_literal( &mut self, vocabulary: &mut (impl IriVocabularyMut + LiteralVocabularyMut<Literal = L>), literal: Literal, ) -> Self::Resource
Source§impl ReverseIriInterpretation for Indexed
impl ReverseIriInterpretation for Indexed
Source§impl TraversableInterpretation for Indexed
impl TraversableInterpretation for Indexed
impl Eq for Indexed
impl StructuralPartialEq for Indexed
Auto Trait Implementations§
impl Freeze for Indexed
impl RefUnwindSafe for Indexed
impl Send for Indexed
impl Sync for Indexed
impl Unpin for Indexed
impl UnwindSafe for Indexed
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<I> FallibleInterpretation for Iwhere
I: Interpretation,
impl<I> FallibleInterpretation for Iwhere
I: Interpretation,
type Resource = <I as Interpretation>::Resource
type Error = Infallible
Source§impl<V, I> FallibleInterpretationMut<V> for Iwhere
I: InterpretationMut<V>,
impl<V, I> FallibleInterpretationMut<V> for Iwhere
I: InterpretationMut<V>,
fn try_new_resource( &mut self, vocabulary: &mut V, ) -> Result<<I as FallibleInterpretation>::Resource, <I as FallibleInterpretation>::Error>
Source§impl<I, B, T> IdInterpretation<I, B> for Twhere
T: IriInterpretation<I> + BlankIdInterpretation<B>,
impl<I, B, T> IdInterpretation<I, B> for Twhere
T: IriInterpretation<I> + BlankIdInterpretation<B>,
Source§fn id_interpretation(&self, id: &Id<I, B>) -> Option<Self::Resource>
fn id_interpretation(&self, id: &Id<I, B>) -> Option<Self::Resource>
Returns the interpretation of the given node identifier, if any.
fn lexical_id_interpretation( &self, vocabulary: &(impl IriVocabulary<Iri = I> + BlankIdVocabulary<BlankId = B>), id: Id<&Iri, &BlankId>, ) -> Option<Self::Resource>
Source§impl<I, B, T> IdInterpretationMut<I, B> for Twhere
T: IriInterpretationMut<I> + BlankIdInterpretationMut<B>,
impl<I, B, T> IdInterpretationMut<I, B> for Twhere
T: IriInterpretationMut<I> + BlankIdInterpretationMut<B>,
Source§fn interpret_id(&mut self, id: Id<I, B>) -> Self::Resource
fn interpret_id(&mut self, id: Id<I, B>) -> Self::Resource
Interprets the given identifier.
fn interpret_lexical_id( &mut self, vocabulary: &mut (impl IriVocabularyMut<Iri = I> + BlankIdVocabularyMut<BlankId = B>), id: Id<&Iri, &BlankId>, ) -> Self::Resource
fn interpret_owned_lexical_id( &mut self, vocabulary: &mut (impl IriVocabularyMut<Iri = I> + BlankIdVocabularyMut<BlankId = B>), id: Id, ) -> Self::Resource
Source§impl<I> ReverseIdInterpretation for I
impl<I> ReverseIdInterpretation for I
Source§impl<I> ReverseIdInterpretationMut for I
impl<I> ReverseIdInterpretationMut for I
Source§impl<I> ReverseTermInterpretation for I
impl<I> ReverseTermInterpretation for I
fn terms_of<'a>(&'a self, id: &'a Self::Resource) -> TermsOf<'a, Self> ⓘ
fn term_of<'a>(&'a self, id: &'a Self::Resource) -> Option<TermOf<'a, Self>>
fn has_term(&self, id: &Self::Resource) -> bool
fn quads_of<'a>( &'a self, quad: Quad<&'a Self::Resource, &'a Self::Resource, &'a Self::Resource, &'a Self::Resource>, ) -> QuadsOf<'a, Self> ⓘ
fn grdf_quads_of<'a>( &'a self, quad: Quad<&'a Self::Resource, &'a Self::Resource, &'a Self::Resource, &'a Self::Resource>, ) -> GrdfQuadsOf<'a, Self> ⓘ
Source§impl<I> ReverseTermInterpretationMut for I
impl<I> ReverseTermInterpretationMut for I
Source§fn assign_term(
&mut self,
resource: &Self::Resource,
term: Term<Id<Self::Iri, Self::BlankId>, Self::Literal>,
) -> bool
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>>,
)
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>,
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.
Source§impl<I, B, L, T> TermInterpretation<I, B, L> for Twhere
T: IdInterpretation<I, B> + LiteralInterpretation<L>,
impl<I, B, L, T> TermInterpretation<I, B, L> for Twhere
T: IdInterpretation<I, B> + LiteralInterpretation<L>,
Source§fn term_interpretation(
&self,
term: &Term<Id<I, B>, L>,
) -> Option<Self::Resource>
fn term_interpretation( &self, term: &Term<Id<I, B>, L>, ) -> Option<Self::Resource>
Returns the interpretation of the given term, if any.