1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
pub trait Encode { fn write(&self, a: &mut u64) -> String; } #[cfg(test)] mod tests { // Note this useful idiom: importing names from outer (for mod tests) scope. use super::*; #[test] fn test_href() { } }