pub trait StrToInt {
// Required method
fn parse(&self, s: &str) -> Result<i32, Error>;
// Provided method
fn lines2ints<I>(
&self,
lines: I,
) -> impl Iterator<Item = Result<i32, Error>>
where I: Iterator<Item = Result<String, Error>> { ... }
}Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".