It would be handy if the color types implemented Debug, Display, Eq, Hash and Ord, rather than my having to create a wrapper that does, and also if the non-premultiplied ones treated all fully-transparent "colors" as equal. For Clone, Copy, Debug, Eq the derived implementations are adequate; here are my implementations of the others. The Ord, PartialEq, Display, Hash implementations should be possible to optimize noticeably for the types that are backed by a u32 rather than by four u8s.
It would be handy if the color types implemented Debug, Display, Eq, Hash and Ord, rather than my having to create a wrapper that does, and also if the non-premultiplied ones treated all fully-transparent "colors" as equal. For
Clone, Copy, Debug, Eq
the derived implementations are adequate; here are my implementations of the others. TheOrd, PartialEq, Display, Hash
implementations should be possible to optimize noticeably for the types that are backed by au32
rather than by fouru8
s.