Skip to main content

GraphMut

Trait GraphMut 

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

Mutable graph.

Required Methods§

Source

fn insert( &mut self, triple: Triple<Self::Subject, Self::Predicate, Self::Object>, )

Inserts triple into this graph.

Source

fn remove( &mut self, triple: Triple<&Self::Subject, &Self::Predicate, &Self::Object>, )

Removes triple from this graph.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§