Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- impl Point {
- // Setter for x, private
- fn set_x(&mut self, x: f64) {
- self.x = x;
- }
- }
- impl Point {
- // Setter for y, private
- fn set_y(&mut self, y: f64) {
- self.y = y;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement