pub trait Encoder { // Required method fn encode(&self) -> Vec<u8> ⓘ; // Provided method fn len(&self) -> usize { ... } }