Return Self from function
It would be cool if a trait like this:
pub trait Example {
fn something(&self) -> Self;
}
Made the generated trait implementation wrap the returned value into the enum again.
It would be cool if a trait like this:
pub trait Example {
fn something(&self) -> Self;
}
Made the generated trait implementation wrap the returned value into the enum again.