Skip to content

Commit

Permalink
Missing docs for InitializeOnce::new
Browse files Browse the repository at this point in the history
  • Loading branch information
qinsoon committed Jun 4, 2024
1 parent 84d7770 commit a8bdc46
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/util/rust_util/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ pub struct InitializeOnce<T: 'static> {
}

impl<T> InitializeOnce<T> {
/// Create a new `InitializeOnce` instance. The value needs to be later initialized with `initialize_once`.
pub const fn new() -> Self {
InitializeOnce {
v: UnsafeCell::new(MaybeUninit::uninit()),
Expand Down

0 comments on commit a8bdc46

Please sign in to comment.