Closed segeljakt closed 3 years ago
Now you can use the enum-api as:
#[arcorn::rewrite] enum Foo { Bar(i32) } let foo = enwrap!(Foo::Bar, 5); assert!(is!(Foo::Bar, foo)); assert_eq!(unwrap!(Foo::Bar, foo), 5);
Note: The old API is still supported. Eventually I will migrate to this in arc-script.
Now you can use the enum-api as:
Note: The old API is still supported. Eventually I will migrate to this in arc-script.