Trait GraphVisitor

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

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

Required Associated Types§

Required Methods§

Source

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

Source

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

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: GraphVisitor<I, V>> GraphVisitor<I, V> for &mut S

Source§

type Ok = ()

Source§

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

Source§

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

Source§

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

Implementors§