pub fn validate_ids(ids: &[u32]) -> Result<(), CompressionError>Expand description
Validate that ids is sorted in strictly ascending order (sorted + unique).
Uniqueness is required because set compressors encode sets, not multisets: the compressed representation assumes each ID appears exactly once, and duplicate or out-of-order elements would silently corrupt the delta encoding (producing zero or negative gaps that cannot round-trip).
Returns Ok(()) for empty slices.