You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Pr0methean
changed the title
Color types should implement Clone, Debug, Display, Eq, Hash, Ord
Color types should implement Debug, Display, Eq, Hash, Ord
Apr 29, 2023
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.The text was updated successfully, but these errors were encountered: