Skip to main content

GraphMut

Trait GraphMut 

Source
pub trait GraphMut: Graph {
    // Required methods
    fn insert(&mut self, triple: Triple<Self::Resource>);
    fn remove(&mut self, triple: Triple<&Self::Resource>);
}
Expand description

Mutable graph.

Required Methods§

Source

fn insert(&mut self, triple: Triple<Self::Resource>)

Inserts the given triple in the graph.

Source

fn remove(&mut self, triple: Triple<&Self::Resource>)

Removes the given triple from the graph.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<R> GraphMut for BTreeGraph<R>
where R: Clone + Ord,

Source§

impl<R> GraphMut for IndexedBTreeGraph<R>
where R: Clone + Ord,