pub trait Triple {
    type Term: TTerm + ?Sized;
    fn s(&self) -> &Self::Term;
fn p(&self) -> &Self::Term;
fn o(&self) -> &Self::Term; fn wrap_as_quad(self) -> TripleAsQuad<Self>
    where
        Self: Sized
, { ... }
fn as_quad(self) -> TripleAsQuad<Self>
    where
        Self: Sized,
        Self::Term: Sized
, { ... }
fn wrap_as_quad_from(self, name: Self::Term) -> TripleAsQuadFrom<Self>
    where
        Self: Sized,
        Self::Term: Sized
, { ... }
fn as_quad_from(self, name: Self::Term) -> TripleAsQuadFrom<Self>
    where
        Self: Sized,
        Self::Term: Sized
, { ... }
fn components(&self) -> TripleIter<'_, Self>
Notable traits for TripleIter<'a, T>
impl<'a, T> Iterator for TripleIter<'a, T> where
    T: Triple + ?Sized
type Item = &'a T::Term;
{ ... } }
Expand description

This trait represents an abstract RDF triple, and provide convenient methods for working with triples.

Associated Types

Required methods

The subject of this triple.

The predicate of this triple.

The object of this triple.

Provided methods

Quad adapter owning this triple, pretending to belong to the default graph.

👎 Deprecated since 0.6.3:

has been renamed to wrap_as_quad

Quad adapter owning this triple, pretending to belong to a named graph with the given name.

👎 Deprecated since 0.6.3:

has been renamed to wrap_as_quad_from

Iterator over the components of this triple

Implementations on Foreign Types

Implementors