Skip to main content

GraphVisitor

Trait GraphVisitor 

Source
pub trait GraphVisitor<I: Interpretation> {
    type Ok;
    type Error;

    // Required methods
    fn subject<T>(&mut self, value: &T) -> Result<(), Self::Error>
       where T: ?Sized + LinkedDataResource<I> + LinkedDataSubject<I>;
    fn end(self) -> Result<Self::Ok, Self::Error>;
}
Expand description

Visitor over the subjects of an RDF graph.

Required Associated Types§

Source

type Ok

Value returned once the graph has been entirely visited.

Source

type Error

Error type.

Required Methods§

Source

fn subject<T>(&mut self, value: &T) -> Result<(), Self::Error>

Visits a subject of the graph.

Source

fn end(self) -> Result<Self::Ok, Self::Error>

Ends the graph visit.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<I: Interpretation, S: GraphVisitor<I>> GraphVisitor<I> for &mut S

Source§

type Ok = ()

Source§

type Error = <S as GraphVisitor<I>>::Error

Source§

fn subject<T>(&mut self, value: &T) -> Result<(), Self::Error>

Source§

fn end(self) -> Result<Self::Ok, Self::Error>

Implementors§