We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There's a neat little Once struct that wraps dispatch_once, but it's not usable since there's no way to initialize a const UnsafeCell.
Once
dispatch_once
UnsafeCell
Once const fns are stabilized in rust-lang/rust#24111, the Once::new method can be marked const and the struct will be usable.
Once::new
The text was updated successfully, but these errors were encountered:
50309d0
No branches or pull requests
There's a neat little
Once
struct that wrapsdispatch_once
, but it's not usable since there's no way to initialize a constUnsafeCell
.Once const fns are stabilized in rust-lang/rust#24111, the
Once::new
method can be marked const and the struct will be usable.The text was updated successfully, but these errors were encountered: