mirror of
https://github.com/mimblewimble/grin.git
synced 2025-02-01 17:01:09 +03:00
Doc for new OneTime.is_initialized
This commit is contained in:
parent
4fa7f34b7e
commit
37cc919f6e
1 changed files with 1 additions and 0 deletions
|
@ -73,6 +73,7 @@ impl<T> OneTime<T> {
|
||||||
*inner_mut = Some(value);
|
*inner_mut = Some(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Whether the OneTime has been initialized
|
||||||
pub fn is_initialized(&self) -> bool {
|
pub fn is_initialized(&self) -> bool {
|
||||||
let inner = self.inner.borrow();
|
let inner = self.inner.borrow();
|
||||||
inner.is_some()
|
inner.is_some()
|
||||||
|
|
Loading…
Reference in a new issue