pub trait Label{
type Index: Eq + Copy + Hash + Debug + Index + 'static;
// Required methods
fn variants() -> &'static [Self];
fn indexes(&self) -> &'static [Self::Index];
fn ordinal(&self) -> usize;
fn name(&self) -> &'static str;
}
Expand description
A label for an Element
. This can be either a vertex or an edge.
Required Associated Types§
Required Methods§
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.