pub struct NodeMap<T, B, M> { /* private fields */ }
Expand description

Node identifier to node definition map.

Implementations§

source§

impl<T, B, M> NodeMap<T, B, M>

source

pub fn new() -> Self

source

pub fn into_parts(self) -> Parts<T, B, M>

source

pub fn iter(&self) -> Iter<'_, T, B, M>

source

pub fn iter_named(&self) -> Iter<'_, Id<T, B>, NamedNodeMapGraph<T, B, M>>

source§

impl<T: Eq + Hash, B: Eq + Hash, M> NodeMap<T, B, M>

source

pub fn graph(&self, id: Option<&Id<T, B>>) -> Option<&NodeMapGraph<T, B, M>>

source

pub fn graph_mut( &mut self, id: Option<&Id<T, B>> ) -> Option<&mut NodeMapGraph<T, B, M>>

source

pub fn declare_graph(&mut self, Meta: Meta<Id<T, B>, M>)

source

pub fn merge(self) -> NodeMapGraph<T, B, M>where T: Clone, B: Clone, M: Clone,

Merge all the graphs into a single NodeMapGraph.

The order in which graphs are merged is not defined.

source§

impl<T: Clone + Eq + Hash, B: Clone + Eq + Hash, M: Clone> NodeMap<T, B, M>

source

pub fn flatten(self, ordered: bool) -> Vec<IndexedNode<T, B, M>>where (): Vocabulary<Iri = T, BlankId = B>,

source

pub fn flatten_with<V>( self, vocabulary: &V, ordered: bool ) -> Vec<IndexedNode<T, B, M>>where V: Vocabulary<Iri = T, BlankId = B>,

source

pub fn flatten_unordered(self) -> HashSet<StrippedIndexedNode<T, B, M>>

Trait Implementations§

source§

impl<T, B, M> Default for NodeMap<T, B, M>

source§

fn default() -> Self

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

impl<'a, T, B, M> IntoIterator for &'a NodeMap<T, B, M>

§

type Item = (Option<Meta<&'a Id<T, B>, &'a M>>, &'a NodeMapGraph<T, B, M>)

The type of the elements being iterated over.
§

type IntoIter = Iter<'a, T, B, M>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<T, B, M> IntoIterator for NodeMap<T, B, M>

§

type Item = (Option<Meta<Id<T, B>, M>>, NodeMapGraph<T, B, M>)

The type of the elements being iterated over.
§

type IntoIter = IntoIter<T, B, M>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<T: Eq + Hash, B: Eq + Hash, M> LdQuads<T, B, M> for NodeMap<T, B, M>

source§

fn quads(&self) -> Quads<'_, T, B, M>

source§

impl<T: Eq + Hash, B: Eq + Hash, M> RdfQuads<T, B, M> for NodeMap<T, B, M>

source§

fn rdf_quads_full<'n, 'g, V: Vocabulary<Iri = T, BlankId = B>, G: Generator<V, M>>( &self, vocabulary: &'n mut V, generator: &'g mut G, rdf_direction: Option<RdfDirection>, produce_generalized_rdf: bool ) -> Quads<'_, 'n, 'g, V, M, G>

source§

fn rdf_quads_with<'n, 'g, V: Vocabulary<Iri = T, BlankId = B>, G: Generator<V, M>>( &self, vocabulary: &'n mut V, generator: &'g mut G, rdf_direction: Option<RdfDirection> ) -> Quads<'_, 'n, 'g, V, M, G>

Auto Trait Implementations§

§

impl<T, B, M> RefUnwindSafe for NodeMap<T, B, M>where B: RefUnwindSafe, M: RefUnwindSafe, T: RefUnwindSafe,

§

impl<T, B, M> Send for NodeMap<T, B, M>where B: Send, M: Send, T: Send,

§

impl<T, B, M> Sync for NodeMap<T, B, M>where B: Sync, M: Sync, T: Sync,

§

impl<T, B, M> Unpin for NodeMap<T, B, M>where B: Unpin, M: Unpin, T: Unpin,

§

impl<T, B, M> UnwindSafe for NodeMap<T, B, M>where B: UnwindSafe, M: UnwindSafe, T: UnwindSafe,

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> At for T

source§

fn at<M>(self, metadata: M) -> Meta<T, M>

Wraps self inside a Meta<Self, M> using the given metadata. Read more
source§

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

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> BorrowStripped for T

source§

fn stripped(&self) -> &Stripped<T>

source§

impl<T> BorrowUnordered for T

source§

fn unordered(&self) -> &Unordered<T>

source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

const: unstable · 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 T

§

type Owned = T

source§

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

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · 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.
const: unstable · source§

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

Performs the conversion.
source§

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

source§

fn with<C>(&self, context: C) -> Contextual<&T, C>

source§

fn into_with<C>(self, context: C) -> Contextual<T, C>