[][src]Trait sophia_api::quad::Quad

pub trait Quad {
    type Term: TTerm + ?Sized;
    fn s(&self) -> &Self::Term;
fn p(&self) -> &Self::Term;
fn o(&self) -> &Self::Term;
fn g(&self) -> Option<&Self::Term>; fn as_triple(self) -> QuadAsTriple<Self>
    where
        Self: Sized
, { ... }
fn components(&self) -> QuadIter<Self>

Important traits for QuadIter<'a, Q>

impl<'a, Q: ?Sized> Iterator for QuadIter<'a, Q> where
    Q: Quad
type Item = &'a Q::Term;
{ ... } }

This trait represents an abstract RDF quad, and provides convenient methods for working with quads.

Associated Types

type Term: TTerm + ?Sized

Loading content...

Required methods

fn s(&self) -> &Self::Term

The subject of this quad.

fn p(&self) -> &Self::Term

The predicate of this quad.

fn o(&self) -> &Self::Term

The object of this quad.

fn g(&self) -> Option<&Self::Term>

The (optional) graph name

Loading content...

Provided methods

fn as_triple(self) -> QuadAsTriple<Self> where
    Self: Sized

Triple adapter owning this quad.

fn components(&self) -> QuadIter<Self>

Important traits for QuadIter<'a, Q>

impl<'a, Q: ?Sized> Iterator for QuadIter<'a, Q> where
    Q: Quad
type Item = &'a Q::Term;

Iterator over the components of this triple

Loading content...

Implementations on Foreign Types

impl<T> Quad for [T; 4] where
    T: TTerm + Sized
[src]

type Term = T

impl<'a, T: ?Sized> Quad for (&'a T, &'a T, &'a T, &'a T) where
    T: TTerm
[src]

type Term = T

impl<T> Quad for (T, Option<T::Term>) where
    T: Triple,
    T::Term: Sized
[src]

type Term = T::Term

impl<'a, Q: Quad> Quad for &'a Q where
    Q: Quad
[src]

type Term = Q::Term

Loading content...

Implementors

impl<'a, T> Quad for StreamedQuad<'a, T> where
    T: QuadStreamingMode
[src]

type Term = <T::UnsafeQuad as UnsafeQuad>::Term

impl<T> Quad for TripleAsQuadFrom<T> where
    T: Triple
[src]

type Term = T::Term

impl<T: Triple> Quad for TripleAsQuad<T>[src]

type Term = T::Term

Loading content...