pub trait Edge: Eq {
// Required methods
fn from(&self) -> usize;
fn to(&self) -> usize;
fn color(&self) -> u8;
fn set_color(&mut self, color: u8);
}Required Methods§
fn from(&self) -> usize
fn to(&self) -> usize
fn color(&self) -> u8
fn set_color(&mut self, color: u8)
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.