1 2 3 4 5 6 7 8 9 10 11
pub trait Clear { fn reset(&mut self); } pub type Bytes = Vec<u8>; impl Clear for Bytes { fn reset(&mut self) { self.clear() } }