pub struct UnionGraph<'a, G: GraphRead + ?Sized> { /* private fields */ }Expand description
Expose the union as the default graph while preserving original named graphs. The source must remain consistent throughout a read, as a borrowed Dataset or native transaction does. A repeated exact match must select the same first quad; no sorted order is required.
Implementations§
Trait Implementations§
Source§impl<'source, G: GraphRead + ?Sized> GraphRead for UnionGraph<'source, G>
impl<'source, G: GraphRead + ?Sized> GraphRead for UnionGraph<'source, G>
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>
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>
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> Freeze for UnionGraph<'a, G>where
G: ?Sized,
impl<'a, G> RefUnwindSafe for UnionGraph<'a, G>where
G: RefUnwindSafe + ?Sized,
impl<'a, G> Send for UnionGraph<'a, G>
impl<'a, G> Sync for UnionGraph<'a, G>
impl<'a, G> Unpin for UnionGraph<'a, G>where
G: ?Sized,
impl<'a, G> UnsafeUnpin for UnionGraph<'a, G>where
G: ?Sized,
impl<'a, G> UnwindSafe for UnionGraph<'a, G>where
G: RefUnwindSafe + ?Sized,
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