1
2
3
4
5
6
7
8
9
/// Converts a 2d type to a luma image type.
///
/// This uses an associated type to avoid ambiguity for the compiler.
/// By calling this, the compiler always knows the returned type.
pub trait ToImageLuma {
    type Out;

    fn to_image_luma(self) -> Self::Out;
}