Function option

Source
pub fn option<'a, T>(
    iter: impl Iterator<Item = Result<T, Error>> + 'a,
) -> Result<Option<T>, Error>