TimelyDataflow / abomonation

A mortifying serialization library for Rust
MIT License
317 stars 30 forks source link

Make `Range<T>` abomonable #34

Closed llogiq closed 4 years ago

llogiq commented 4 years ago

I tried to use abomonation in a benchmark, which unfortunately didn't work, because my benchmark object had a field of type Range. So here's some code to implement the Abomonation trait for ranges.

frankmcsherry commented 4 years ago

This looks idiomatic, thanks very much!