Constant std::sync::ONCE_INIT

pub const ONCE_INIT: Once;
???? Deprecated since 1.38.0:

the new function is now preferred

Initialization value for static Once values.

Examples

use std::sync::{Once, ONCE_INIT};

static START: Once = ONCE_INIT;

© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/std/sync/constant.ONCE_INIT.html