pub struct OverlayGraph<'a, G: GraphRead + ?Sized, S: GraphRead + ?Sized> { /* private fields */ }Expand description
Add a separate named shapes graph without cloning or modifying the base. Shapes are projected from their union; their original contexts do not leak into the base dataset. The reserved graph exists even when shapes are empty.
Implementations§
Trait Implementations§
Source§impl<'source, G: GraphRead + ?Sized, S: GraphRead + ?Sized> GraphRead for OverlayGraph<'source, G, S>
impl<'source, G: GraphRead + ?Sized, S: GraphRead + ?Sized> GraphRead for OverlayGraph<'source, G, S>
Source§fn matching_quads<'a>(
&'a self,
subject: Option<NamedOrBlankNodeRef<'_>>,
predicate: Option<NamedNodeRef<'_>>,
object: Option<TermRef<'_>>,
graph: Option<GraphNameRef<'_>>,
) -> impl Iterator<Item = Result<Quad>> + use<'a, 'source, G, S>
fn matching_quads<'a>( &'a self, subject: Option<NamedOrBlankNodeRef<'_>>, predicate: Option<NamedNodeRef<'_>>, object: Option<TermRef<'_>>, graph: Option<GraphNameRef<'_>>, ) -> impl Iterator<Item = Result<Quad>> + use<'a, 'source, G, S>
Stream matching quads. Read failures must remain errors, never omissions.
Retain the source borrow, not the caller’s temporary pattern references.
Source§fn named_graphs(&self) -> impl Iterator<Item = Result<NamedOrBlankNode>> + '_
fn named_graphs(&self) -> impl Iterator<Item = Result<NamedOrBlankNode>> + '_
Stream each named graph exactly once, including empty backend graphs.
Iteration must not materialize the set of graph names.
Source§fn contains_named_graph(&self, graph: &NamedOrBlankNode) -> Result<bool>
fn contains_named_graph(&self, graph: &NamedOrBlankNode) -> Result<bool>
Test graph existence, including empty graphs in capable storage backends.
Auto Trait Implementations§
impl<'a, G, S> Freeze for OverlayGraph<'a, G, S>
impl<'a, G, S> RefUnwindSafe for OverlayGraph<'a, G, S>
impl<'a, G, S> Send for OverlayGraph<'a, G, S>
impl<'a, G, S> Sync for OverlayGraph<'a, G, S>
impl<'a, G, S> Unpin for OverlayGraph<'a, G, S>
impl<'a, G, S> UnsafeUnpin for OverlayGraph<'a, G, S>
impl<'a, G, S> UnwindSafe for OverlayGraph<'a, G, S>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more