1 2 3 4 5 6 7 8
use fast_io::CustomIO; use std::fmt::Debug; pub trait Connection: Clone+Debug+PartialEq+CustomIO { fn new(weight: f64) -> Self; fn weight(&self) -> f64; }