Trait cint::ColorInterop
source · [−]pub trait ColorInterop where
Self: Into<Self::CintTy>, {
type CintTy: Into<Self>;
fn from_cint(col: Self::CintTy) -> Self { ... }
fn into_cint(self) -> Self::CintTy { ... }
}Expand description
A trait that should be implemented by provider crates on their local color types so that you can call
color.to_cint() and Color::from_cint(cint_color).
Provider crates should also do relevant From/Into impls, but ColorInterop provides a “canonical”
transformation to the closest cint color type.