use crateExtendError;
use crateCollision;
/// Specialization of [`ExtendError`] for [`Collision`] errors.
///
/// This is used when collecting into a collection that checks for duplicate items,
/// such as [`HashSet`](std::collections::HashSet) or [`HashMap`](std::collections::HashMap).
///
/// # Type Parameters
///
/// * `I` - The [`Iterator`] that produced the colliding item