pub trait LineAPI<T> { // Required methods fn distance(&self, p: Point<T>) -> f64; fn contains_point(&self, p: Point<T>) -> bool; }