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§
Required Methods§
Sourcefn default_graph<T>(&mut self, value: &T) -> Result<(), Self::Error>where
T: ?Sized + LinkedDataGraph<I, V>,
fn default_graph<T>(&mut self, value: &T) -> Result<(), Self::Error>where
T: ?Sized + LinkedDataGraph<I, V>,
Visits the default graph of the dataset.
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.
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.