Struct json_ld::flattening::NodeMap
source · 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>
impl<T, B, M> NodeMap<T, B, M>
pub fn new() -> NodeMap<T, B, M>
pub fn into_parts( self ) -> (NodeMapGraph<T, B, M>, HashMap<Id<T, B>, NamedNodeMapGraph<T, B, M>>)
pub fn iter(&self) -> Iter<'_, T, B, M> ⓘ
pub fn iter_named(&self) -> Iter<'_, Id<T, B>, NamedNodeMapGraph<T, B, M>>
source§impl<T, B, M> NodeMap<T, B, M>
impl<T, B, M> NodeMap<T, B, M>
source§impl<T, B, M> NodeMap<T, B, M>
impl<T, B, M> NodeMap<T, B, M>
pub fn flatten(self, ordered: bool) -> Vec<Meta<Indexed<Node<T, B, M>, M>, M>>where
(): Vocabulary<Iri = T, BlankId = B>,
pub fn flatten_with<V>(
self,
vocabulary: &V,
ordered: bool
) -> Vec<Meta<Indexed<Node<T, B, M>, M>, M>>where
V: Vocabulary<Iri = T, BlankId = B>,
pub fn flatten_unordered( self ) -> HashSet<Stripped<Meta<Indexed<Node<T, B, M>, M>, M>>>
Trait Implementations§
source§impl<'a, T, B, M> IntoIterator for &'a NodeMap<T, B, M>
impl<'a, T, B, M> IntoIterator for &'a NodeMap<T, B, M>
source§impl<T, B, M> IntoIterator for NodeMap<T, B, M>
impl<T, B, M> IntoIterator for NodeMap<T, B, M>
source§impl<T, B, M> RdfQuads<T, B, M> for NodeMap<T, B, M>
impl<T, B, M> RdfQuads<T, B, M> for NodeMap<T, B, M>
fn rdf_quads_full<V, G, 'n, 'g>(
&self,
vocabulary: &'n mut V,
generator: &'g mut G,
rdf_direction: Option<RdfDirection>,
produce_generalized_rdf: bool
) -> Quads<'_, 'n, 'g, V, M, G> ⓘwhere
V: Vocabulary<Iri = T, BlankId = B>,
G: MetaGenerator<V, M>,
fn rdf_quads_with<V, G, 'n, 'g>(
&self,
vocabulary: &'n mut V,
generator: &'g mut G,
rdf_direction: Option<RdfDirection>
) -> Quads<'_, 'n, 'g, V, M, G> ⓘwhere
V: Vocabulary<Iri = T, BlankId = B>,
G: MetaGenerator<V, M>,
Auto Trait Implementations§
impl<T, B, M> RefUnwindSafe for NodeMap<T, B, M>
impl<T, B, M> Send for NodeMap<T, B, M>
impl<T, B, M> Sync for NodeMap<T, B, M>
impl<T, B, M> Unpin for NodeMap<T, B, M>
impl<T, B, M> UnwindSafe for NodeMap<T, B, M>
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