Crate taken [−] [src]
Macros for taking ownership, starring Liam Neeson
This module exports the take!
macro which allows you to express ownership on one or more
variables.
All of them expand into some sort of let v = v;
. See the take!
for more details and possible use cases.
Special Thanks
This crate was created through the community efforts at /r/rust. Special thanks to:
- /u/CUViper for poiting out the tradeoffs of this strategy.
- /u/jasonkdark for the initial implementation.
[In the voice of Liam Neeson] If you let my object go now, that'll be the end of it. But if you don't, I will look for you, I will find you, and I will kill you.
Whoa Liam Neeson, you'll get your object back, I swear!
Macros
take |
Take ownership of specific variables. |