pub trait ComponentOrder<C, P> {
// Required methods
fn pack(color: C) -> P;
fn unpack(packed: P) -> C;
}Expand description
Packs and unpacks color types with some component order.
As an example, RGBA channels may be ordered as ABGR, ARGB, BGRA, or
RGBA.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.