New ArrayLike super trait for returning arrays which looks a lot cleaner given the many many traits applicable to arrays.
Removed ContiguousPixel in favor of TryFrom<&[T]> implementation on pixels.
Removed all panics from the library by making the from_components() -> Selftry_from_components() -> Result<Self, TryFromComponentsError>
Renamed the two main pixel traits to to HomPixel and HetPixel since typing out Homogeneous and Heterogeneous is really annoying and I keep mis-spelling them like HomogenousPixel :smile:
Added an implementation of IntoIterator for all the pixel types when they are homogeneous.
Summary of changes:
ArrayLike
super trait for returning arrays which looks a lot cleaner given the many many traits applicable to arrays.ContiguousPixel
in favor ofTryFrom<&[T]>
implementation on pixels.from_components() -> Self
try_from_components() -> Result<Self, TryFromComponentsError>
HomPixel
andHetPixel
since typing outHomogeneous
andHeterogeneous
is really annoying and I keep mis-spelling them likeHomogenousPixel
:smile:IntoIterator
for all the pixel types when they are homogeneous.