pub unsafe trait Component {
    fn is_valid(format: Format<'_>) -> bool;
}
Expand description

A trait for possible pixel components.

Safety

Implementing this trait allows retrieving slices of pixel data from the frame for the target type, so the target type must be valid for the given format.

Required Methods

Returns whether this component is valid for this format.

Implementations on Foreign Types

Implementors