Advertisement
cwchen

[Rust] Using Point class.

Aug 28th, 2017
3,489
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rust 0.09 KB | None | 0 0
  1. fn main() {
  2.     let p = Point::new(3.0, 4.0);
  3.  
  4.     println!("({}, {})", p.x(), p.y());
  5. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement