[][src]Struct sophia::graph::adapter::GraphAsDataset

pub struct GraphAsDataset<G: ?Sized, H>(_, _);

Methods

impl<G: ?Sized, H> GraphAsDataset<G, H>[src]

pub fn unwrap(self) -> H[src]

Unwrap this adapter to get the original graph back.

Trait Implementations

impl<'a, G, H> Dataset<'a> for GraphAsDataset<G, H> where
    G: Graph<'a>,
    H: Borrow<G>, 
[src]

type Quad = TripleAsQuad<G::Triple>

The type of Quads that the methods of this dataset will yield. Read more

type Error = G::Error

The error type that this dataset may raise. Read more

fn quads_matching<S: ?Sized, P: ?Sized, O: ?Sized, G: ?Sized>(
    &'a self,
    ms: &'a S,
    mp: &'a P,
    mo: &'a O,
    mg: &'a G
) -> DQuadSource<'a, Self> where
    S: TermMatcher,
    P: TermMatcher,
    O: TermMatcher,
    G: GraphNameMatcher
[src]

An iterator visiting add quads matching the given subject, predicate, object and graph name. Read more

fn graph<T>(
    &self,
    graph_name: Option<&Term<T>>
) -> DatasetGraph<Self, &Self, Option<BoxTerm>> where
    T: TermData
[src]

Borrows one of the graphs of this dataset

fn graph_mut<T>(
    &mut self,
    graph_name: Option<&Term<T>>
) -> DatasetGraph<Self, &mut Self, Option<BoxTerm>> where
    T: TermData
[src]

Borrows mutably one of the graphs of this dataset

fn union_graph<T>(&'a self, gmatcher: T) -> DatasetGraph<Self, &Self, T> where
    T: GraphNameMatcher
[src]

Borrows a graph containing the union of all graphs matched by gmatcher

impl<G, H> MutableDataset for GraphAsDataset<G, H> where
    G: MutableGraph,
    H: BorrowMut<G>,
    Error: From<G::MutationError>, 
[src]

type MutationError = Error

The error type that this dataset may raise during mutations. Read more

fn inserter(&mut self) -> Inserter<Self>[src]

Return a QuadSink that will insert into this dataset all the quads it receives. Read more

fn insert_all<'a, TS>(
    &mut self,
    src: &mut TS
) -> CoercedResult<usize, TS::Error, Self::MutationError> where
    TS: QuadSource<'a>,
    TS::Error: CoercibleWith<Self::MutationError>, 
[src]

Insert into this dataset all quads from the given source.

fn remover(&mut self) -> Remover<Self>[src]

Return a QuadSink that will remove from this dataset all the quads it receives. Read more

fn remove_all<'a, TS>(
    &mut self,
    src: &mut TS
) -> CoercedResult<usize, TS::Error, Self::MutationError> where
    TS: QuadSource<'a>,
    TS::Error: CoercibleWith<Self::MutationError>, 
[src]

Remove from this dataset all quads from the given source.

fn remove_matching<S: ?Sized, P: ?Sized, O: ?Sized, G: ?Sized>(
    &mut self,
    ms: &S,
    mp: &P,
    mo: &O,
    mg: &G
) -> MDResult<Self, usize> where
    S: TermMatcher,
    P: TermMatcher,
    O: TermMatcher,
    G: GraphNameMatcher,
    Self::Error: Into<Self::MutationError>,
    Never: CoercibleWith<Self::MutationError>,
    Self::MutationError: From<CoercedError<Never, Self::MutationError>>, 
[src]

Remove all quads matching the given matchers. Read more

fn retain<S: ?Sized, P: ?Sized, O: ?Sized, G: ?Sized>(
    &mut self,
    ms: &S,
    mp: &P,
    mo: &O,
    mg: &G
) -> MDResult<Self, ()> where
    S: TermMatcher,
    P: TermMatcher,
    O: TermMatcher,
    G: GraphNameMatcher,
    Self::Error: Into<Self::MutationError>,
    Never: CoercibleWith<Self::MutationError>,
    Self::MutationError: From<CoercedError<Never, Self::MutationError>>, 
[src]

Keep only the quads matching the given matchers. Read more

impl<G, H> SetDataset for GraphAsDataset<G, H> where
    G: SetGraph,
    H: Borrow<G>, 
[src]

Auto Trait Implementations

impl<G: ?Sized, H> Sync for GraphAsDataset<G, H> where
    G: Sync,
    H: Sync

impl<G: ?Sized, H> Send for GraphAsDataset<G, H> where
    G: Send,
    H: Send

impl<G: ?Sized, H> Unpin for GraphAsDataset<G, H> where
    G: Unpin,
    H: Unpin

impl<G: ?Sized, H> RefUnwindSafe for GraphAsDataset<G, H> where
    G: RefUnwindSafe,
    H: RefUnwindSafe

impl<G: ?Sized, H> UnwindSafe for GraphAsDataset<G, H> where
    G: UnwindSafe,
    H: UnwindSafe

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]