pub trait Clock { fn frequency(&self) -> Rate<u32, 1, 1>; fn mhz(&self) -> u32 { ... } fn hz(&self) -> u32 { ... } }