TripleStoreIntoIter

Trait TripleStoreIntoIter 

Source
pub trait TripleStoreIntoIter<Id: IdType, NodeProps: Property, EdgeProps: Property>: TripleStoreError {
    // Required methods
    fn into_iter_nodes(
        self,
        order: EdgeOrder,
    ) -> (impl Iterator<Item = Result<(Id, NodeProps), Self::Error>>, impl Iterator<Item = Result<(Triple<Id>, EdgeProps), Self::Error>>);
    fn into_iter_vertices(
        self,
    ) -> impl Iterator<Item = Result<(Id, NodeProps), Self::Error>>;
    fn into_iter_edges_with_props(
        self,
        order: EdgeOrder,
    ) -> impl Iterator<Item = Result<PropsTriple<Id, NodeProps, EdgeProps>, Self::Error>>;
    fn into_iter_edges(
        self,
        order: EdgeOrder,
    ) -> impl Iterator<Item = Result<(Triple<Id>, EdgeProps), Self::Error>>;
}

Required Methods§

Source

fn into_iter_nodes( self, order: EdgeOrder, ) -> (impl Iterator<Item = Result<(Id, NodeProps), Self::Error>>, impl Iterator<Item = Result<(Triple<Id>, EdgeProps), Self::Error>>)

Source

fn into_iter_vertices( self, ) -> impl Iterator<Item = Result<(Id, NodeProps), Self::Error>>

Iterate over vertices in the triplestore.

Source

fn into_iter_edges_with_props( self, order: EdgeOrder, ) -> impl Iterator<Item = Result<PropsTriple<Id, NodeProps, EdgeProps>, Self::Error>>

Iterate over the edges in the triplestore, fetching node properties for each subject and object.

Source

fn into_iter_edges( self, order: EdgeOrder, ) -> impl Iterator<Item = Result<(Triple<Id>, EdgeProps), Self::Error>>

Iterate over the edges in the triplestore

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<Id: IdType, NodeProps: Property + PartialEq, EdgeProps: Property + PartialEq> TripleStoreIntoIter<Id, NodeProps, EdgeProps> for MemTripleStore<Id, NodeProps, EdgeProps>

Source§

impl<Id: IdType, NodeProps: Property + Serialize + DeserializeOwned, EdgeProps: Property + Serialize + DeserializeOwned> TripleStoreIntoIter<Id, NodeProps, EdgeProps> for SledTripleStore<Id, NodeProps, EdgeProps>