[−][src]Trait canvas::AsPixel
Describes a type which can represent a Pixel
.
Required methods
fn pixel() -> Pixel<Self>
Get the pixel struct for this type.
The naive implementation of merely unwraping the result of Pixel::for_type
panics on
any invalid type. This trait should only be implemented when you know for sure that the
type is correct.