Tracking Issue for OnceCell/Lock::get_mut_or_init · Issue #121641 · rust-lang/rust (original) (raw)

pub fn get_mut_or_try_init<F, E>(&mut self, f: F) -> Result<&mut T, E>
where
    F: FnOnce() -> Result<T, E> { ... }

pub fn get_mut_or_init<F>(&mut self, f: F) -> &mut T
where
    F: FnOnce() -> T { ... }

None yet.