Struct rdf_types::interpretation::Indexed
source · 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>
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
§type Resource = ResourceIndex
type Resource = ResourceIndex
Resource identifier type.
§type Resources<'a> = ResourceIndexIter
type Resources<'a> = ResourceIndexIter
Interpreted resource iterator.
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>
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: &Literal<V::Type, V::Value> ) -> 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: &Literal<V::Type, V::Value> ) -> Self::Resource
fn interpret_owned_lexical_literal<V: LiteralVocabularyMut<Literal = L>>( &mut self, vocabulary: &mut V, literal: Literal<V::Type, V::Value> ) -> Self::Resource
fn interpret_full_lexical_literal<V>( &mut self, vocabulary: &mut V, literal: Literal<Type<IriBuf, LanguageTagBuf>, V::Value> ) -> Self::Resourcewhere V: LiteralVocabularyMut<Literal = L, Type = Type<V::Iri, V::LanguageTag>> + IriVocabularyMut + LanguageTagVocabularyMut,
source§impl PartialEq<Indexed> for Indexed
impl PartialEq<Indexed> for Indexed
source§impl ReverseIdInterpretation for Indexed
impl ReverseIdInterpretation for Indexed
type Iri = IriIndex
type BlankId = BlankIdIndex
type Iris<'a> = Flatten<IntoIter<Iter<'a, IriIndex>>>
type BlankIds<'a> = Flatten<IntoIter<Iter<'a, BlankIdIndex>>>
source§fn iris_of(&self, id: &Self::Resource) -> Self::Iris<'_>
fn iris_of(&self, id: &Self::Resource) -> Self::Iris<'_>
Returns an iterator over the IRIs of the given resource.
source§fn blank_ids_of(&self, id: &Self::Resource) -> Self::BlankIds<'_>
fn blank_ids_of(&self, id: &Self::Resource) -> Self::BlankIds<'_>
Returns an iterator over the blank node identifiers of the given resource.
fn ids_of(&self, id: &Self::Resource) -> IdsOf<'_, Self> ⓘ
source§impl ReverseTermInterpretation for Indexed
impl ReverseTermInterpretation for Indexed
type IdRef<'a> where Self: 'a = Id<&'a IriIndex, &'a BlankIdIndex>
type LiteralRef<'a> where Self: 'a = &'a LiteralIndex
type Ids<'a> = IdsOf<'a, Indexed>
type Literals<'a> = Flatten<IntoIter<Iter<'a, LiteralIndex>>>
fn ids_of(&self, id: &Self::Resource) -> Self::Ids<'_>
fn literals_of(&self, id: &Self::Resource) -> Self::Literals<'_>
fn terms_of(&self, id: &Self::Resource) -> TermsOf<'_, Self> ⓘ
fn term_of( &self, id: &Self::Resource ) -> Option<Term<Self::IdRef<'_>, Self::LiteralRef<'_>>>
fn has_term(&self, id: &Self::Resource) -> bool
source§impl ReverseTermInterpretationMut for Indexed
impl ReverseTermInterpretationMut for Indexed
type Id = Id<IriIndex, BlankIdIndex>
type Literal = LiteralIndex
source§fn assign_id(&mut self, resource: Self::Resource, id: Self::Id) -> bool
fn assign_id(&mut self, resource: Self::Resource, id: Self::Id) -> bool
Assigns the given id to the given resource.
source§fn assign_literal(
&mut self,
resource: Self::Resource,
literal: Self::Literal
) -> bool
fn assign_literal( &mut self, resource: Self::Resource, literal: Self::Literal ) -> bool
Assigns the given literal to the given resource.
source§fn assign_term(
&mut self,
resource: Self::Resource,
term: Term<Self::Id, Self::Literal>
) -> bool
fn assign_term( &mut self, resource: Self::Resource, term: Term<Self::Id, 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<Self::Id, Self::Literal>>
)
fn assign_terms( &mut self, f: impl FnMut(&Self, &Self::Resource) -> Option<Term<Self::Id, Self::Literal>> )
Assigns a term to all the interpreted resources.
source§fn generate_ids<N: Namespace<Id = Self::Id>>(
&mut self,
namespace: &mut N,
generator: &mut impl Generator<N>
)where
Self: ReverseTermInterpretationMut,
fn generate_ids<N: Namespace<Id = Self::Id>>( &mut self, namespace: &mut N, generator: &mut impl Generator<N> )where Self: ReverseTermInterpretationMut,
Generates and assign a node identifier for all the resources that don’t
have any term, using the given generator.
impl Eq for Indexed
impl StructuralEq for Indexed
impl StructuralPartialEq for Indexed
Auto Trait Implementations§
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
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, B, T> IdInterpretation<Id<I, B>> for Twhere
T: IriInterpretation<I> + BlankIdInterpretation<B>,
impl<I, B, T> IdInterpretation<Id<I, B>> for Twhere T: IriInterpretation<I> + BlankIdInterpretation<B>,
source§fn id_interpretation(
&self,
id: &Id<I, B>
) -> Option<<T as Interpretation>::Resource>
fn id_interpretation( &self, id: &Id<I, B> ) -> Option<<T as Interpretation>::Resource>
Returns the interpretation of the given node identifier, if any.
source§impl<I, B, T> IdInterpretationMut<Id<I, B>> for Twhere
T: IriInterpretationMut<I> + BlankIdInterpretationMut<B>,
impl<I, B, T> IdInterpretationMut<Id<I, B>> for Twhere T: IriInterpretationMut<I> + BlankIdInterpretationMut<B>,
source§fn interpret_id(&mut self, id: Id<I, B>) -> <T as Interpretation>::Resource
fn interpret_id(&mut self, id: Id<I, B>) -> <T as Interpretation>::Resource
Interprets the given identifier.