Skip to main content

PredicateObjectsVisitor

Trait PredicateObjectsVisitor 

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

    // Required methods
    fn object<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 objects of a predicate.

Required Associated Types§

Source

type Ok

Value returned once every object has been visited.

Source

type Error

Error type.

Required Methods§

Source

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

Visits an object of the predicate.

Source

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

Ends the objects visit.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§