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)
trait Get<'a> {
// Required method
fn get(self, nth: usize) -> Result<&'a [u8], ReadError>;
}
Let’s us call self.something().get(i) instead of get(self.something(), i)