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§
Sourcefn src_map_mut(&mut self) -> &mut Self::Src
fn src_map_mut(&mut self) -> &mut Self::Src
Variant of src_map
that returns a mutable
reference.
Sourcefn tgt_map_mut(&mut self) -> &mut Self::Tgt
fn tgt_map_mut(&mut self) -> &mut Self::Tgt
Variant of tgt_map
that returns a mutable
reference.
Provided Methods§
Sourcefn get_src(&self, e: &Self::E) -> Option<&Self::V>
fn get_src(&self, e: &Self::E) -> Option<&Self::V>
Gets the source of an edge, possibly undefined.
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.