Struct Indexed

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

Source§

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: LiteralRef<'_, 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: LiteralRef<'_, 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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl ReverseBlankIdInterpretation for Indexed

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

Source§

type Iri = IriIndex

Source§

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

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

Source§

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<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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

Checks if this value is equivalent to the given key. 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<V, I> FallibleInterpretationMut<V> for I
where I: InterpretationMut<V>,

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

Source§

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

Source§

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

Source§

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.