Module image::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

Traits

  • Types which are safe to treat as an immutable byte slice in a pixel layout for image encoding.
  • An Enlargable::Larger value should be enough to calculate the sum (average) of a few hundred or thousand Enlargeable values.
  • Linear interpolation without involving floating numbers.
  • A generalized pixel.
  • The pixel with an associated ColorType. Not all possible pixels represent one of the predefined ColorTypes.
  • The type of each channel in a pixel. For example, this can be u8, u16, f32.