Marvin Löbel
Marvin Löbel
Similar to `lazy_static::initialize()` there could be a `lazy_static::is_initialized()`. This could be used to give code that might run into a initialization cycle issue an way to avoid it. However, it...
I've been thinking about wether it would make sense to change the macro name and syntax. The main argument here is consistency with `std` macros like https://doc.rust-lang.org/std/macro.thread_local.html. Compare: ```rust thread_local!...
### Code I tried this code: - https://godbolt.org/z/M33K6afz8 - https://play.rust-lang.org/?version=beta&mode=release&edition=2018&gist=095cc1d85dfd25b5dd1bc742fbf98432 I expected to see this happen: Both `check1` and `check2` should compile to functions that just use a compiletime-evaluated struct...
While giving support on the discord channel, I've noticed over time that there are some recurring scenarios where you might want to show how some code runs via the bot,...
See https://github.com/Kimundi/owning-ref-rs/pull/15#issuecomment-262142161
Right now the crate contains a bunch of types and typedefs for different mutabilty and usecase scenarios. It would be nice if the API could be simplified by offloading some...