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.