pub struct Indexed { /* private fields */ }

Implementations§

source§

impl Indexed

source

pub fn new() -> Self

source

pub fn len(&self) -> usize

source

pub fn is_empty(&self) -> bool

Trait Implementations§

source§

impl BlankIdInterpretation<BlankIdIndex> for Indexed

source§

fn blank_id_interpretation( &self, blank_id: &BlankIdIndex ) -> Option<Self::Resource>

Returns the interpretation of the given blank node identifier, if any.
source§

fn lexical_blank_id_interpretation( &self, vocabulary: &impl BlankIdVocabulary<BlankId = B>, blank_id: &BlankId ) -> Option<Self::Resource>

source§

impl BlankIdInterpretationMut<BlankIdIndex> for Indexed

source§

fn interpret_blank_id(&mut self, blank_id: BlankIdIndex) -> Self::Resource

Interprets the given blank node identifier.
source§

fn interpret_lexical_blank_id( &mut self, vocabulary: &mut impl BlankIdVocabularyMut<BlankId = B>, blank_id: &BlankId ) -> Self::Resource

source§

fn interpret_owned_lexical_blank_id( &mut self, vocabulary: &mut impl BlankIdVocabularyMut<BlankId = B>, blank_id: BlankIdBuf ) -> Self::Resource

source§

impl Clone for Indexed

source§

fn clone(&self) -> Indexed

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Indexed

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Indexed

source§

fn default() -> Indexed

Returns the “default value” for a type. Read more
source§

impl Interpretation for Indexed

§

type Resource = ResourceIndex

Resource identifier type.
§

type Resources<'a> = ResourceIndexIter

Interpreted resource iterator.
source§

fn resources(&self) -> Self::Resources<'_>

Returns an iterator over the interpreted resources.
source§

impl IriInterpretation<IriIndex> for Indexed

source§

fn iri_interpretation(&self, iri: &IriIndex) -> Option<Self::Resource>

Returns the interpretation of the given IRI, if any.
source§

fn lexical_iri_interpretation( &self, vocabulary: &impl IriVocabulary<Iri = I>, iri: Iri<'_> ) -> Option<Self::Resource>

source§

impl IriInterpretationMut<IriIndex> for Indexed

source§

fn interpret_iri(&mut self, iri: IriIndex) -> Self::Resource

Interprets the given IRI.
source§

fn interpret_lexical_iri( &mut self, vocabulary: &mut impl IriVocabularyMut<Iri = I>, iri: Iri<'_> ) -> Self::Resource

source§

fn interpret_owned_lexical_iri( &mut self, vocabulary: &mut impl IriVocabularyMut<Iri = I>, iri: IriBuf ) -> Self::Resource

source§

impl LiteralInterpretation<LiteralIndex> for Indexed

source§

fn literal_interpretation( &self, literal: &LiteralIndex ) -> Option<Self::Resource>

Returns the interpretation of the given literal value, if any.
source§

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

source§

fn interpret_literal(&mut self, literal: LiteralIndex) -> Self::Resource

Interprets the given literal value.
source§

fn interpret_lexical_literal<V: LiteralVocabularyMut<Literal = L>>( &mut self, vocabulary: &mut V, literal: &Literal<V::Type, V::Value> ) -> Self::Resource

source§

fn interpret_owned_lexical_literal<V: LiteralVocabularyMut<Literal = L>>( &mut self, vocabulary: &mut V, literal: Literal<V::Type, V::Value> ) -> Self::Resource

source§

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

source§

fn eq(&self, other: &Indexed) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

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<'_>

Returns an iterator over the IRIs of the given resource.
source§

fn blank_ids_of(&self, id: &Self::Resource) -> Self::BlankIds<'_>

Returns an iterator over the blank node identifiers of the given resource.
source§

fn ids_of(&self, id: &Self::Resource) -> IdsOf<'_, Self>

source§

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>>>

source§

fn ids_of(&self, id: &Self::Resource) -> Self::Ids<'_>

source§

fn literals_of(&self, id: &Self::Resource) -> Self::Literals<'_>

source§

fn terms_of(&self, id: &Self::Resource) -> TermsOf<'_, Self>

source§

fn term_of( &self, id: &Self::Resource ) -> Option<Term<Self::IdRef<'_>, Self::LiteralRef<'_>>>

source§

fn has_term(&self, id: &Self::Resource) -> bool

source§

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

Assigns the given id to the given resource.
source§

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

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>> )

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,

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

impl Eq for Indexed

source§

impl StructuralEq for Indexed

source§

impl StructuralPartialEq for Indexed

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

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,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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>

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>,

source§

fn interpret_id(&mut self, id: Id<I, B>) -> <T as Interpretation>::Resource

Interprets the given identifier.
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.