parse_and_collect_ips

Function parse_and_collect_ips 

Source
pub fn parse_and_collect_ips(
    country_code: &str,
    rir_texts: &[String],
) -> Result<(BTreeSet<IpNet>, BTreeSet<IpNet>), AppError>
Expand description

IPv4範囲をBTreeSetへ直接挿入 逐次集合化する RIR テキストを1行ずつストリーミング解析し、重複排除しながら集合化 戻り値は 重複無し・昇順BTreeSet