std::sync::ONCE_INIT

Constant std::sync::ONCE_INIT

pub const ONCE_INIT: Once = <Once>::new()

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

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部