Add more from the std

This commit is contained in:
2026-03-19 10:04:21 +01:00
parent 9b8afd2c5c
commit fc3a04a20e
49 changed files with 5497 additions and 424 deletions

View File

@@ -39,6 +39,11 @@ impl Once {
Once { state: Cell::new(State::Incomplete) }
}
#[inline]
pub const fn new_complete() -> Once {
Once { state: Cell::new(State::Complete) }
}
#[inline]
pub fn is_completed(&self) -> bool {
self.state.get() == State::Complete