Skip to main content

PixelFormat

Trait PixelFormat 

Source
pub trait PixelFormat {
    // Required methods
    fn bit_width(self) -> usize;
    fn components(self) -> FormatComponents;
    fn element_type(self) -> ElementType;
}
Expand description

For testing format traits

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§