Expand description
This module provides useful traits that were deprecated in rust
Modulesยง
- private ๐
- Prevents down-stream users from implementing the
Primitive
trait - seals ๐
- Private module for supertraits of sealed traits.
Macrosยง
- declare_
primitive ๐
Traitsยง
- Encodable
Layout - Types which are safe to treat as an immutable byte slice in a pixel layout for image encoding.
- Enlargeable
- An
Enlargable::Larger
value should be enough to calculate the sum (average) of a few hundred or thousand Enlargeable values. - Lerp
- Linear interpolation without involving floating numbers.
- Pixel
- A generalized pixel.
- Pixel
With Color Type - The pixel with an associated
ColorType
. Not all possible pixels represent one of the predefinedColorType
s. - Primitive
- The type of each channel in a pixel. For example, this can be
u8
,u16
,f32
.