pub struct UnionGraph<T: Dataset>(/* private fields */);Expand description
Implementations§
Trait Implementations§
Source§impl<T: Clone + Dataset> Clone for UnionGraph<T>
impl<T: Clone + Dataset> Clone for UnionGraph<T>
Source§fn clone(&self) -> UnionGraph<T>
fn clone(&self) -> UnionGraph<T>
Returns a duplicate 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> Graph for UnionGraph<T>
impl<T: Dataset> Graph for UnionGraph<T>
Source§type Triple<'x> = [<<T as Dataset>::Quad<'x> as Quad>::Term; 3]
where
Self: 'x
type Triple<'x> = [<<T as Dataset>::Quad<'x> as Quad>::Term; 3] where Self: 'x
Determine the type of
Triples
that the methods of this graph will yield.Source§fn triples(&self) -> impl Iterator<Item = GResult<Self, Self::Triple<'_>>> + '_
fn triples(&self) -> impl Iterator<Item = GResult<Self, Self::Triple<'_>>> + '_
An iterator visiting all triples of this graph in arbitrary order. Read more
Source§fn triples_matching<'s, S, P, O>(
&'s self,
sm: S,
pm: P,
om: O,
) -> impl Iterator<Item = GResult<Self, Self::Triple<'s>>> + 's
fn triples_matching<'s, S, P, O>( &'s self, sm: S, pm: P, om: O, ) -> impl Iterator<Item = GResult<Self, Self::Triple<'s>>> + 's
An iterator visiting all triples matching the given subject, predicate and object.
See
crate::term::matcher. Read moreSource§fn subjects(&self) -> impl Iterator<Item = GResult<Self, GTerm<'_, Self>>> + '_
fn subjects(&self) -> impl Iterator<Item = GResult<Self, GTerm<'_, Self>>> + '_
Build a fallible iterator of all the terms used as subject in this Graph. Read more
Source§fn predicates(
&self,
) -> impl Iterator<Item = GResult<Self, GTerm<'_, Self>>> + '_
fn predicates( &self, ) -> impl Iterator<Item = GResult<Self, GTerm<'_, Self>>> + '_
Build a fallible iterator of all the terms used as predicate in this Graph. Read more
Source§fn objects(&self) -> impl Iterator<Item = GResult<Self, GTerm<'_, Self>>> + '_
fn objects(&self) -> impl Iterator<Item = GResult<Self, GTerm<'_, Self>>> + '_
Build a fallible iterator of all the terms used as object in this Graph. Read more
Source§fn iris(&self) -> impl Iterator<Item = GResult<Self, GTerm<'_, Self>>> + '_
fn iris(&self) -> impl Iterator<Item = GResult<Self, GTerm<'_, Self>>> + '_
Build a fallible iterator of all the IRIs used in this Graph
(including those used inside quoted triples, if any). Read more
Source§fn blank_nodes(
&self,
) -> impl Iterator<Item = GResult<Self, GTerm<'_, Self>>> + '_
fn blank_nodes( &self, ) -> impl Iterator<Item = GResult<Self, GTerm<'_, Self>>> + '_
Build a fallible iterator of all the blank nodes used in this Graph
(including those used inside quoted triples, if any). Read more
Source§fn literals(&self) -> impl Iterator<Item = GResult<Self, GTerm<'_, Self>>> + '_
fn literals(&self) -> impl Iterator<Item = GResult<Self, GTerm<'_, Self>>> + '_
Build a fallible iterator of all the literals used in this Graph
(including those used inside quoted triples, if any). Read more
Source§fn quoted_triples<'s>(
&'s self,
) -> Box<dyn Iterator<Item = GResult<Self, GTerm<'_, Self>>> + '_>
fn quoted_triples<'s>( &'s self, ) -> Box<dyn Iterator<Item = GResult<Self, GTerm<'_, Self>>> + '_>
Build a fallible iterator of all the quoted triples used in this Graph
(including those used inside quoted triples, if any). Read more
Source§fn variables(&self) -> impl Iterator<Item = GResult<Self, GTerm<'_, Self>>> + '_
fn variables(&self) -> impl Iterator<Item = GResult<Self, GTerm<'_, Self>>> + '_
Build a fallible iterator of all the variables used in this Graph
(including those used inside quoted triples, if any). Read more
Source§fn contains<TS, TP, TO>(&self, s: TS, p: TP, o: TO) -> GResult<Self, bool>
fn contains<TS, TP, TO>(&self, s: TS, p: TP, o: TO) -> GResult<Self, bool>
Return
true if this graph contains the given triple.Source§fn as_dataset(&self) -> GraphAsDataset<&Self>
fn as_dataset(&self) -> GraphAsDataset<&Self>
Dataset adapter borrowing this graphSource§fn as_dataset_mut(&mut self) -> GraphAsDataset<&mut Self>
fn as_dataset_mut(&mut self) -> GraphAsDataset<&mut Self>
Dataset adapter borrowing this graph mutablySource§fn into_dataset(self) -> GraphAsDataset<Self>where
Self: Sized,
fn into_dataset(self) -> GraphAsDataset<Self>where
Self: Sized,
Dataset adapter taking ownership of this graphimpl<T: Copy + Dataset> Copy for UnionGraph<T>
Auto Trait Implementations§
impl<T> Freeze for UnionGraph<T>where
T: Freeze,
impl<T> RefUnwindSafe for UnionGraph<T>where
T: RefUnwindSafe,
impl<T> Send for UnionGraph<T>where
T: Send,
impl<T> Sync for UnionGraph<T>where
T: Sync,
impl<T> Unpin for UnionGraph<T>where
T: Unpin,
impl<T> UnwindSafe for UnionGraph<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