pointer-utils icon indicating copy to clipboard operation
pointer-utils copied to clipboard

derive PartialOrd + Ord for SliceWithHeader and StrWithHeader

Open daddinuz opened this issue 1 year ago • 1 comments

Hi :wave:

As per the title, this PR derives PartialOrd and Ord traits for SliceWithHeader and StrWithHeader types.

daddinuz avatar May 21 '23 12:05 daddinuz

I just realized that simply deriving PartialOrd/Ord can lead to some unclear semantics. I'll fix the semantics to be like (&Header, &[Item]).

daddinuz avatar May 21 '23 14:05 daddinuz