pub struct GraphAsDataset<T>(/* private fields */);
Implementations§
Trait Implementations§
Source§impl<T: Clone> Clone for GraphAsDataset<T>
impl<T: Clone> Clone for GraphAsDataset<T>
Source§fn clone(&self) -> GraphAsDataset<T>
fn clone(&self) -> GraphAsDataset<T>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T> Dataset for GraphAsDataset<T>where
T: Graph,
impl<T> Dataset for GraphAsDataset<T>where
T: Graph,
Source§type Quad<'x> = ([<<T as Graph>::Triple<'x> as Triple>::Term; 3], Option<<<T as Graph>::Triple<'x> as Triple>::Term>)
where
Self: 'x
type Quad<'x> = ([<<T as Graph>::Triple<'x> as Triple>::Term; 3], Option<<<T as Graph>::Triple<'x> as Triple>::Term>) where Self: 'x
Determine the type of
Quad
s
that the methods of this dataset will yield.Source§fn quads(&self) -> DQuadSource<'_, Self>
fn quads(&self) -> DQuadSource<'_, Self>
An iterator visiting all quads of this dataset in arbitrary order. Read more
Source§fn quads_matching<'s, S, P, O, G>(
&'s self,
sm: S,
pm: P,
om: O,
gm: G,
) -> DQuadSource<'s, Self>
fn quads_matching<'s, S, P, O, G>( &'s self, sm: S, pm: P, om: O, gm: G, ) -> DQuadSource<'s, Self>
An iterator visiting all quads matching the given subject, predicate and object.
See
crate::term::matcher
Read moreSource§fn contains<TS, TP, TO, TG>(
&self,
s: TS,
p: TP,
o: TO,
g: GraphName<TG>,
) -> DResult<Self, bool>
fn contains<TS, TP, TO, TG>( &self, s: TS, p: TP, o: TO, g: GraphName<TG>, ) -> DResult<Self, bool>
Return
true
if this dataset contains the given quad.Source§fn subjects(&self) -> DTermSource<'_, Self>
fn subjects(&self) -> DTermSource<'_, Self>
Build a fallible iterator of all the terms used as subject in this Dataset. Read more
Source§fn predicates(&self) -> DTermSource<'_, Self>
fn predicates(&self) -> DTermSource<'_, Self>
Build a fallible iterator of all the terms used as predicate in this Dataset. Read more
Source§fn objects(&self) -> DTermSource<'_, Self>
fn objects(&self) -> DTermSource<'_, Self>
Build a fallible iterator of all the terms used as object in this Dataset. Read more
Source§fn graph_names(&self) -> DTermSource<'_, Self>
fn graph_names(&self) -> DTermSource<'_, Self>
Build a fallible iterator of all the terms used as graph name in this Dataset. Read more
Source§fn iris(&self) -> DTermSource<'_, Self>
fn iris(&self) -> DTermSource<'_, Self>
Build a fallible iterator of all the IRIs used in this Dataset
(including those used inside quoted quads, if any). Read more
Source§fn blank_nodes(&self) -> DTermSource<'_, Self>
fn blank_nodes(&self) -> DTermSource<'_, Self>
Build a fallible iterator of all the blank nodes used in this Dataset
(including those used inside quoted quads, if any). Read more
Source§fn literals(&self) -> DTermSource<'_, Self>
fn literals(&self) -> DTermSource<'_, Self>
Build a fallible iterator of all the literals used in this Dataset
(including those used inside quoted quads, if any). Read more
Source§fn quoted_triples<'s>(&'s self) -> DTermSource<'s, Self>
fn quoted_triples<'s>(&'s self) -> DTermSource<'s, Self>
Build a fallible iterator of all the quoted triples used in this Dataset
(including those used inside quoted triples, if any). Read more
Source§fn variables(&self) -> DTermSource<'_, Self>
fn variables(&self) -> DTermSource<'_, Self>
Build a fallible iterator of all the variables used in this Dataset
(including those used inside quoted quads, if any). Read more
Source§fn graph<T>(&self, graph_name: GraphName<T>) -> DatasetGraph<&Self, T>
fn graph<T>(&self, graph_name: GraphName<T>) -> DatasetGraph<&Self, T>
Borrows one of the graphs of this dataset
Source§fn graph_mut<T>(
&mut self,
graph_name: GraphName<T>,
) -> DatasetGraph<&mut Self, T>
fn graph_mut<T>( &mut self, graph_name: GraphName<T>, ) -> DatasetGraph<&mut Self, T>
Borrows mutably one of the graphs of this dataset
Source§fn partial_union_graph<M>(&self, selector: M) -> PartialUnionGraph<&Self, M>where
M: GraphNameMatcher + Copy,
fn partial_union_graph<M>(&self, selector: M) -> PartialUnionGraph<&Self, M>where
M: GraphNameMatcher + Copy,
Borrows a graph that is the union of some of this dataset’s graphs
Source§fn union_graph(&self) -> UnionGraph<&Self>
fn union_graph(&self) -> UnionGraph<&Self>
Borrows a graph that is the union of all this dataset’s graphs (default and named)
Source§fn into_union_graph(self) -> UnionGraph<Self>where
Self: Sized,
fn into_union_graph(self) -> UnionGraph<Self>where
Self: Sized,
Convert into a graph that is the union of all this dataset’s graphs (default and named)
Source§impl<T: Debug> Debug for GraphAsDataset<T>
impl<T: Debug> Debug for GraphAsDataset<T>
Source§impl<T> MutableDataset for GraphAsDataset<T>where
T: MutableGraph,
impl<T> MutableDataset for GraphAsDataset<T>where
T: MutableGraph,
Source§type MutationError = GraphAsDatasetMutationError<<T as MutableGraph>::MutationError>
type MutationError = GraphAsDatasetMutationError<<T as MutableGraph>::MutationError>
The error type that this dataset may raise during mutations.
Source§fn insert<TS, TP, TO, TG>(
&mut self,
s: TS,
p: TP,
o: TO,
g: GraphName<TG>,
) -> MdResult<Self, bool>
fn insert<TS, TP, TO, TG>( &mut self, s: TS, p: TP, o: TO, g: GraphName<TG>, ) -> MdResult<Self, bool>
Insert the given quad in this dataset. Read more
Source§fn remove<TS, TP, TO, TG>(
&mut self,
s: TS,
p: TP,
o: TO,
g: GraphName<TG>,
) -> MdResult<Self, bool>
fn remove<TS, TP, TO, TG>( &mut self, s: TS, p: TP, o: TO, g: GraphName<TG>, ) -> MdResult<Self, bool>
Remove the given quad from this dataset. Read more
Source§fn insert_quad<T>(&mut self, quad: T) -> MdResult<Self, bool>where
T: Quad,
fn insert_quad<T>(&mut self, quad: T) -> MdResult<Self, bool>where
T: Quad,
Insert in this graph the given quad. Read more
Source§fn remove_quad<T>(&mut self, quad: T) -> MdResult<Self, bool>where
T: Quad,
fn remove_quad<T>(&mut self, quad: T) -> MdResult<Self, bool>where
T: Quad,
Remove from this graph a the given quad. Read more
Source§fn insert_all<TS: QuadSource>(
&mut self,
src: TS,
) -> StreamResult<usize, TS::Error, <Self as MutableDataset>::MutationError>
fn insert_all<TS: QuadSource>( &mut self, src: TS, ) -> StreamResult<usize, TS::Error, <Self as MutableDataset>::MutationError>
Insert into this dataset all quads from the given source. Read more
Source§fn remove_all<TS: QuadSource>(
&mut self,
src: TS,
) -> StreamResult<usize, TS::Error, <Self as MutableDataset>::MutationError>
fn remove_all<TS: QuadSource>( &mut self, src: TS, ) -> StreamResult<usize, TS::Error, <Self as MutableDataset>::MutationError>
Remove from this dataset all quads from the given source. Read more
Source§fn remove_matching<S, P, O, G>(
&mut self,
ms: S,
mp: P,
mo: O,
mg: G,
) -> Result<usize, Self::MutationError>where
S: TermMatcher,
P: TermMatcher,
O: TermMatcher,
G: GraphNameMatcher,
Self::MutationError: From<Self::Error>,
fn remove_matching<S, P, O, G>(
&mut self,
ms: S,
mp: P,
mo: O,
mg: G,
) -> Result<usize, Self::MutationError>where
S: TermMatcher,
P: TermMatcher,
O: TermMatcher,
G: GraphNameMatcher,
Self::MutationError: From<Self::Error>,
Remove all quads matching the given matchers. Read more
Source§fn retain_matching<S, P, O, G>(
&mut self,
ms: S,
mp: P,
mo: O,
mg: G,
) -> Result<(), Self::MutationError>where
S: TermMatcher,
P: TermMatcher,
O: TermMatcher,
G: GraphNameMatcher,
Self::MutationError: From<Self::Error>,
fn retain_matching<S, P, O, G>(
&mut self,
ms: S,
mp: P,
mo: O,
mg: G,
) -> Result<(), Self::MutationError>where
S: TermMatcher,
P: TermMatcher,
O: TermMatcher,
G: GraphNameMatcher,
Self::MutationError: From<Self::Error>,
Keep only the quads matching the given matchers. Read more
impl<T: Copy> Copy for GraphAsDataset<T>
Auto Trait Implementations§
impl<T> Freeze for GraphAsDataset<T>where
T: Freeze,
impl<T> RefUnwindSafe for GraphAsDataset<T>where
T: RefUnwindSafe,
impl<T> Send for GraphAsDataset<T>where
T: Send,
impl<T> Sync for GraphAsDataset<T>where
T: Sync,
impl<T> Unpin for GraphAsDataset<T>where
T: Unpin,
impl<T> UnwindSafe for GraphAsDataset<T>where
T: UnwindSafe,
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