Struct rdftk_memgraph::data_set::MemDataSet[][src]

pub struct MemDataSet { /* fields omitted */ }
Expand description

This implementation of the core DataSet and MutableDataSet traits is a simple in-memory hash from graph name to a MemGraph implementation.

Trait Implementations

impl DataSet for MemDataSet[src]

fn is_empty(&self) -> bool[src]

Returns true if there are no graphs in this data set, else false. Read more

fn len(&self) -> usize[src]

Return the number of graphs in this data set. Read more

fn has_default_graph(&self) -> bool[src]

Return true if this data set has a default graph, else false. Read more

fn default_graph(&self) -> Option<&GraphRef>[src]

Return the default graph for this data set, if it exists. Read more

fn has_graph_named(&self, name: &GraphNameRef) -> bool[src]

Return true if this data set has a graph with the provided name, else false. Read more

fn graph_named(&self, name: &GraphNameRef) -> Option<&GraphRef>[src]

Return the graph with the provided name from this data set, if it exists. Read more

fn graphs<'a>(
    &'a self
) -> Box<dyn Iterator<Item = (&'a GraphNameRef, &'a GraphRef)> + 'a>
[src]

Return an iterator over graph name/graph pairs. Read more

fn set_default_graph(&mut self, graph: GraphRef)[src]

Set the provided graph as the default, unnamed graph, for this data set. Only one graph may be the default. Read more

fn unset_default_graph(&mut self)[src]

Remove any graph that may be set as the current default. This operation has no effect if no default graph is present. Read more

fn insert(&mut self, name: GraphNameRef, graph: GraphRef)[src]

Insert a new graph with it’s associated name into the data set. Read more

fn remove(&mut self, name: &GraphNameRef)[src]

Remove the graph with the provided name from this data set. This operation has no effect if no such graph is present. Read more

fn clear(&mut self)[src]

Remove all graphs from this data set. Read more

fn factory(&self) -> DataSetFactoryRef[src]

Return the factory that creates data sets of this kind. Read more

fn supports_feature(&self, _feature: &IRIRef) -> bool[src]

Return true if this instance, or factory, supports the feature identified by the IRI. Read more

Auto Trait Implementations

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.