Trait sophia::streams::TripleSink
source · pub trait TripleSink {
type Error: StdError;
type Outcome;
fn feed<T: Triple>(&mut self, t: &T) -> Result<(), Self::Error>;
fn finish(&mut self) -> Result<Self::Outcome, Self::Error>;
}
Expand description
A triple sink is anything that consumes triples, produces a result, and may also fail in the process.
Typical triple sinks are serializers or graphs’ inserters and removers.
See also TripleSource
.
Required Associated Types
Required Methods
Implementations on Foreign Types
sourceimpl TripleSink for ()
impl TripleSink for ()
()
acts as a “black hole”,
consuming all triples without erring, and producing no result.
Useful for benchmarking triple sources.