pub trait SliceWrapper<T> { // Required method fn slice(&self) -> &[T]; // Provided method fn len(&self) -> usize { ... } }