The best way is probably to create a new type to represent the constants and declare that Sync
. I tried doing this on play and discovered to my surprise that the newtype doesn't require an explicit Sync
declaration: Rust Playground
The best way is probably to create a new type to represent the constants and declare that Sync
. I tried doing this on play and discovered to my surprise that the newtype doesn't require an explicit Sync
declaration: Rust Playground