Advertisement
tinyevil

Untitled

Jun 21st, 2018
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. struct Enum{
  2. case A;
  3. case B(x:i32);
  4. }
  5.  
  6. Enum.A
  7. Enum.A()
  8. Enum.B(20)
  9.  
  10.  
  11.  
  12.  
  13.  
  14. struct Pt{
  15. field x y:i32;
  16. }
  17.  
  18. Pt{x=1, y=2}
  19.  
  20.  
  21.  
  22.  
  23. struct Foo{
  24. case Bar(x:i32);
  25. case Zoo(f:string);
  26.  
  27. field y:i32;
  28. field w:i32;
  29. }
  30.  
  31. Foo.Bar(20){y = 5, w=10}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement