[−][src]Function rpki::x509::update_first
pub fn update_first<F, T, E>(opt: &mut Option<T>, op: F) -> Result<(), E> where
F: FnOnce() -> Result<Option<T>, E>,
Updates an optional value the first time.
Always runs op
but only assigns its result to opt
if that doesn’t hold
a value yet.