Guest User

Untitled

a guest
Jul 13th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. // fix paste
  2.  
  3. struct Point {
  4. pub x: f32,
  5. pub y: f32,
  6. }
  7.  
  8. struct Circle {
  9. pub center: Point,
  10. pub radius: f32,
  11. }
  12.  
  13. struct Uuid {
  14. repr: u128,
  15. }
  16.  
  17. fn square(x: f64) -> f64 {
  18. x * x
  19. }
  20.  
  21. fn gcd(a: u32, b: u32) -> u32 {
  22. if b == 0 {
  23. return a;
  24. }
  25. gcd(b, a % b)
  26. }
  27.  
  28.  
  29. fn main() {
  30. // Prints four lines
  31. for i in 0..4 {
  32. println!("line {}", i);
  33. }
  34. }
Add Comment
Please, Sign In to add comment