Open bvssvni opened 4 years ago
Dyon supports a shorthand syntax for Rust objects in the dyon_fn macro:
dyon_fn
dyon_fn{fn foo(a: #Foo) { ... }}
#Foo
Copy
#&Foo
#&mut Foo
One can also use #Foo as return type:
dyon_fn{fn new_foo() -> #Foo { ... }}
Dyon supports a shorthand syntax for Rust objects in the
dyon_fn
macro:#Foo
- by value (requires theCopy
trait)#&Foo
- by reference#&mut Foo
by mutable referenceOne can also use
#Foo
as return type: