Lesson 22 of 25 · +140 xp

Impl Block

Add methods.

Explained simply

Your task

Write impl Point { fn new() -> Self { Point { x: 0, y: 0 } } }

impl.rust
← Back