1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
pub trait Polar { /// radian fn angle(&self) -> f64; fn distance(&self) -> f64; } #[cfg(test)] mod tests { #[test] fn test() {} }