The Self Type

We'll cover the following...

This is a minor point for now. Let’s look at our new static method again:

Press + to interact
impl Fruit {
fn new() -> Fruit {
Fruit { apples: 10, bananas: 5 }
}
}

We had to mention the type Fruit three times, in the impl block itself, the return ...