Trait linked_data::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§
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.
Object Safety§
This trait is not object safe.
Implementations on Foreign Types§
source§impl<'s, I: Interpretation, V: Vocabulary, S: Visitor<I, V>> Visitor<I, V> for &'s mut S
impl<'s, I: Interpretation, V: Vocabulary, S: Visitor<I, V>> Visitor<I, V> for &'s mut S
Any mutable reference to a visitor is itself a visitor.