Module traits

Source
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ยง

EncodableLayout
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.
PixelWithColorType
The pixel with an associated ColorType. Not all possible pixels represent one of the predefined ColorTypes.
Primitive
The type of each channel in a pixel. For example, this can be u8, u16, f32.