pub trait VertexType: Eq + Copy {
type IdentifierType: Copy + Eq + PartialOrd + AddAssign<Self::IdentifierType>;
// Required methods
fn id(&self) -> Self::IdentifierType;
fn usize(a: Self::IdentifierType) -> usize;
}Expand description
Any type that can be used to index internal buffer
Required Associated Types§
type IdentifierType: Copy + Eq + PartialOrd + AddAssign<Self::IdentifierType>
Required Methods§
fn id(&self) -> Self::IdentifierType
fn usize(a: Self::IdentifierType) -> usize
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.