We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 { ... }}
The text was updated successfully, but these errors were encountered:
Added shorthand syntax for Rust objects in macros
15c1d2e
See PistonDevelopers#661
bvssvni
No branches or pull requests
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:The text was updated successfully, but these errors were encountered: