Module sophia_api::quad::stream
source · [−]Expand description
A quad source produces quads, and may also fail in the process.
The trait QuadSource
provides an API similar to (a subset of) the Iterator
API,
with methods such as for_each_quad
and try_for_each_quad
.
Rationale (or Why not simply use Iterator
?)
See the documentation of the triple::stream
module.
Re-exports
pub use crate::triple::stream::SinkError;
pub use crate::triple::stream::SourceError;
Structs
The result of QuadSource::filter_map_quads
An iterator over the result of QuadSource::filter_map_quads
The result of QuadSource::filter_quads
The result of QuadSource::map_quads
An iterator over the result of QuadSource::map_quads
Enums
A error that is raised by functions that move fallible Source
s into
fallible Sinks
.
Traits
A utility extension trait for converting any iterator of Quad
s
into QuadSource
, by wrapping its items in Ok
results.
A utility extension trait for converting any iterator of Quad
s
into QuadSource
, by wrapping its items in Ok
results.
A quad source produces Quad
s, and may also fail in the process.