pub(crate) fn ancestors( parents: &BTreeMap<u64, Option<u64>>, id: u64, ) -> impl Iterator<Item = u64> + '_