use crateErrorItemProvider;
/// Error type for when a single item cannot be added to a collection due to a collision.
///
/// This is commonly used with map and set collection where duplicate keys/values are not allowed.
///
/// # Type Parameters
///
/// - `T`: The type of the item that caused the collision.
///
/// # Examples
///
/// ```rust
/// # use collect_failable::errors::collision::Collision;
/// let error = Collision::new(1);
/// assert_eq!(error.item, 1);
/// ```