Trait MutColumnarGraph

Source
pub trait MutColumnarGraph: ColumnarGraph<Src: MutMapping<Dom = Self::E, Cod = Self::V>, Tgt: MutMapping<Dom = Self::E, Cod = Self::V>> {
    // Required methods
    fn src_map_mut(&mut self) -> &mut Self::Src;
    fn tgt_map_mut(&mut self) -> &mut Self::Tgt;

    // Provided methods
    fn get_src(&self, e: &Self::E) -> Option<&Self::V> { ... }
    fn get_tgt(&self, e: &Self::E) -> Option<&Self::V> { ... }
    fn set_src(&mut self, e: Self::E, v: Self::V) -> Option<Self::V> { ... }
    fn set_tgt(&mut self, e: Self::E, v: Self::V) -> Option<Self::V> { ... }
}
Expand description

A columnar graph with mutable columns.

Required Methods§

Source

fn src_map_mut(&mut self) -> &mut Self::Src

Variant of src_map that returns a mutable reference.

Source

fn tgt_map_mut(&mut self) -> &mut Self::Tgt

Variant of tgt_map that returns a mutable reference.

Provided Methods§

Source

fn get_src(&self, e: &Self::E) -> Option<&Self::V>

Gets the source of an edge, possibly undefined.

Source

fn get_tgt(&self, e: &Self::E) -> Option<&Self::V>

Gets the target of an edge, possibly undefined.

Source

fn set_src(&mut self, e: Self::E, v: Self::V) -> Option<Self::V>

Sets the source of an edge.

Source

fn set_tgt(&mut self, e: Self::E, v: Self::V) -> Option<Self::V>

Sets the target of an edge.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl MutColumnarGraph for SkelGraph

Source§

impl<V, E, S> MutColumnarGraph for HashGraph<V, E, S>
where V: Eq + Hash + Clone, E: Eq + Hash + Clone, S: BuildHasher,