Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yeah that’s what I did and it’s ugly. It works, and allows me to attach multiple behaviors but I would have to initialize them and write that boilerplate code to return them.

I think I might be able to do it with a macro but I’m not a rust guy so I’m limited by my knowledge.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: