pub trait DocProcess<S: Into<String>> { // Provided method fn process_docs(self, indent_headings: bool) -> Vec<String> where Self: Sized + Iterator<Item = S> { ... } }