Trait Visitor

Source
pub trait Visitor<I: Interpretation = (), V: Vocabulary = ()> {
    type Ok;
    type Error;

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

RDF dataset visitor.

Required Associated Types§

Source

type Ok

Type of the value returned by the visitor when the dataset has been entirely visited.

Source

type Error

Error type.

Required Methods§

Source

fn default_graph<T>(&mut self, value: &T) -> Result<(), Self::Error>
where T: ?Sized + LinkedDataGraph<I, V>,

Visits the default graph of the dataset.

Source

fn named_graph<T>(&mut self, value: &T) -> Result<(), Self::Error>
where T: ?Sized + LinkedDataResource<I, V> + LinkedDataGraph<I, V>,

Visits a named graph of the dataset.

Source

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

Ends the dataset visit.

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.

Implementations on Foreign Types§

Source§

impl<I: Interpretation, V: Vocabulary, S: Visitor<I, V>> Visitor<I, V> for &mut S

Any mutable reference to a visitor is itself a visitor.

Source§

type Ok = ()

Source§

type Error = <S as Visitor<I, V>>::Error

Source§

fn default_graph<T>(&mut self, value: &T) -> Result<(), Self::Error>
where T: ?Sized + LinkedDataGraph<I, V>,

Source§

fn named_graph<T>(&mut self, value: &T) -> Result<(), Self::Error>
where T: ?Sized + LinkedDataResource<I, V> + LinkedDataGraph<I, V>,

Source§

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

Implementors§