Skip to main content

OverlayGraph

Struct OverlayGraph 

Source
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§

Source§

impl<'a, G: GraphRead + ?Sized, S: GraphRead + ?Sized> OverlayGraph<'a, G, S>

Source

pub fn new( source: &'a G, shapes: &'a S, graph: NamedOrBlankNode, ) -> Result<Self>

Reserve a fresh named graph; collisions, including empty graphs, fail.

Trait Implementations§

Source§

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>

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>> + '_

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>

Test graph existence, including empty graphs in capable storage backends.

Auto Trait Implementations§

§

impl<'a, G, S> Freeze for OverlayGraph<'a, G, S>
where G: ?Sized, S: ?Sized,

§

impl<'a, G, S> RefUnwindSafe for OverlayGraph<'a, G, S>

§

impl<'a, G, S> Send for OverlayGraph<'a, G, S>
where G: Sync + ?Sized, S: Sync + ?Sized,

§

impl<'a, G, S> Sync for OverlayGraph<'a, G, S>
where G: Sync + ?Sized, S: Sync + ?Sized,

§

impl<'a, G, S> Unpin for OverlayGraph<'a, G, S>
where G: ?Sized, S: ?Sized,

§

impl<'a, G, S> UnsafeUnpin for OverlayGraph<'a, G, S>
where G: ?Sized, S: ?Sized,

§

impl<'a, G, S> UnwindSafe for OverlayGraph<'a, G, S>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V