From 37cc919f6ef440d48e75768f6acca2e825d43bca Mon Sep 17 00:00:00 2001 From: Ignotus Peverell Date: Tue, 17 Oct 2017 13:56:47 +0000 Subject: [PATCH] Doc for new OneTime.is_initialized --- util/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/util/src/lib.rs b/util/src/lib.rs index a2859e9a8..6b078ac77 100644 --- a/util/src/lib.rs +++ b/util/src/lib.rs @@ -73,6 +73,7 @@ impl OneTime { *inner_mut = Some(value); } + /// Whether the OneTime has been initialized pub fn is_initialized(&self) -> bool { let inner = self.inner.borrow(); inner.is_some()