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>
where B: Sized,

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.
source§

impl<V> InterpretationMut<V> for Indexed

source§

fn new_resource(&mut self, _vocabulary: &mut V) -> Self::Resource

Creates a new resource.
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>
where I: Sized,

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::Iri> ) -> 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::Iri> ) -> Self::Resource

source§

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

source§

fn interpret_full_lexical_literal( &mut self, vocabulary: &mut (impl IriVocabularyMut + LiteralVocabularyMut<Literal = L>), literal: Literal ) -> Self::Resource

source§

impl PartialEq 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 ReverseBlankIdInterpretation for Indexed

§

type BlankId = BlankIdIndex

§

type BlankIds<'a> = Flatten<IntoIter<Iter<'a, BlankIdIndex>>>

source§

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

source§

impl ReverseBlankIdInterpretationMut for Indexed

source§

fn assign_blank_id( &mut self, resource: &Self::Resource, blank_id: Self::BlankId ) -> bool

source§

impl ReverseIriInterpretation for Indexed

§

type Iri = IriIndex

§

type Iris<'a> = Flatten<IntoIter<Iter<'a, IriIndex>>>

source§

fn iris_of(&self, id: &Self::Resource) -> Self::Iris<'_>

source§

impl ReverseIriInterpretationMut for Indexed

source§

fn assign_iri(&mut self, resource: &Self::Resource, iri: Self::Iri) -> bool

source§

impl ReverseLiteralInterpretation for Indexed

§

type Literal = LiteralIndex

§

type Literals<'a> = Flatten<IntoIter<Iter<'a, LiteralIndex>>>

source§

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

source§

impl ReverseLiteralInterpretationMut for Indexed

source§

fn assign_literal( &mut self, resource: &Self::Resource, literal: Self::Literal ) -> bool

Assigns the given literal to the given resource.
source§

impl TraversableInterpretation for Indexed

§

type Resources<'a> = ResourceIndexIter<'a>

Interpreted resource iterator.
source§

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

Returns an iterator over the interpreted resources.
source§

impl Eq for Indexed

source§

impl StructuralPartialEq for Indexed

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where 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 Q
where 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<I> FallibleInterpretation for I
where I: Interpretation,

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<I, B, T> IdInterpretation<I, B> for T

source§

fn id_interpretation(&self, id: &Id<I, B>) -> Option<Self::Resource>

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

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 T

source§

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

Interprets the given identifier.
source§

fn interpret_lexical_id( &mut self, vocabulary: &mut (impl IriVocabularyMut<Iri = I> + BlankIdVocabularyMut<BlankId = B>), id: Id<&Iri, &BlankId> ) -> Self::Resource

source§

fn interpret_owned_lexical_id( &mut self, vocabulary: &mut (impl IriVocabularyMut<Iri = I> + BlankIdVocabularyMut<BlankId = B>), id: Id ) -> Self::Resource

source§

impl<T, U> Into<U> for T
where 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<I> ReverseIdInterpretation for I

source§

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

source§

impl<I> ReverseIdInterpretationMut for I

source§

fn assign_id( &mut self, r: &Self::Resource, id: Id<Self::Iri, Self::BlankId> ) -> bool

source§

impl<I> ReverseTermInterpretation for I

source§

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

source§

fn term_of<'a>(&'a self, id: &'a Self::Resource) -> Option<TermOf<'a, Self>>

source§

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

source§

fn quads_of<'a>( &'a self, quad: Quad<&'a Self::Resource, &'a Self::Resource, &'a Self::Resource, &'a Self::Resource> ) -> QuadsOf<'a, Self>

source§

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

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.
source§

impl<I, B, L, T> TermInterpretation<I, B, L> for T

source§

fn term_interpretation( &self, term: &Term<Id<I, B>, L> ) -> Option<Self::Resource>

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

fn lexical_term_interpretation( &self, vocabulary: &impl Vocabulary<Iri = I, BlankId = B, Literal = L>, term: Term<Id<&Iri, &BlankId>, &Literal<I>> ) -> Option<Self::Resource>

source§

impl<I, B, L, T> TermInterpretationMut<I, B, L> for T

source§

fn interpret_term(&mut self, term: Term<Id<I, B>, L>) -> Self::Resource

source§

fn interpret_lexical_term( &mut self, vocabulary: &mut impl VocabularyMut<Iri = I, BlankId = B, Literal = L>, term: Term<Id<&Iri, &BlankId>, &Literal<I>> ) -> Self::Resource

source§

fn interpret_owned_lexical_term( &mut self, vocabulary: &mut impl VocabularyMut<Iri = I, BlankId = B, Literal = L>, term: Term<Id, Literal<I>> ) -> Self::Resource

source§

fn interpret_full_lexical_term( &mut self, vocabulary: &mut impl VocabularyMut<Iri = I, BlankId = B, Literal = L>, term: Term ) -> Self::Resource

source§

impl<T> ToOwned for T
where 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<I> TraversableFallibleInterpretation for I

source§

impl<T, U> TryFrom<U> for T
where 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 T
where 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.