Constant std::sync::ONCE_INIT

1.0.0 · source ·
pub const ONCE_INIT: Once;
👎Deprecated since 1.38.0: the new function is now preferred
Expand description

静态 Once 值的初始化值。

Examples

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

static START: Once = ONCE_INIT;
Run