trait Get<'a> {
// Required method
fn get(self, nth: usize) -> Result<&'a [u8], ReadError>;
}Expand description
Let’s us call self.something().get(i) instead of get(self.something(), i)
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".