Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct Enum{
- case A;
- case B(x:i32);
- }
- Enum.A
- Enum.A()
- Enum.B(20)
- struct Pt{
- field x y:i32;
- }
- Pt{x=1, y=2}
- struct Foo{
- case Bar(x:i32);
- case Zoo(f:string);
- field y:i32;
- field w:i32;
- }
- Foo.Bar(20){y = 5, w=10}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement