Rustのコード生成周りの気になる点として,構造体の定義とメソッドの定義が別々の要素として分断してしまっているので両方の情報を一度に使用できないというのがある。
-
Show this thread
-
例えばこのような手続き的マクロを用意したとして,これら2つのマクロは独立に呼び出されることになる https://gist.github.com/ubnt-intrepid/60c6d116427c0d6db7bcc2c13c064798 …
1 reply 0 retweets 0 likesShow this thread -
構造体定義とimplをラップする関数形式のマクロを用意すればよさそう…? https://gist.github.com/ubnt-intrepid/60c6d116427c0d6db7bcc2c13c064798#file-playground2-rs-L7 …
1 reply 0 retweets 0 likesShow this thread
コレジャナイ感が…
11:48 AM - 10 Jul 2018
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.