Add ColorSpace::as_u8()

This commit is contained in:
Ivan Smirnov 2022-01-03 12:00:18 +03:00
parent bfd947f573
commit 4e43c8ba01

View file

@ -24,6 +24,10 @@ impl ColorSpace {
pub const fn is_linear(self) -> bool {
matches!(self, Self::Linear)
}
pub const fn as_u8(self) -> u8 {
self as u8
}
}
impl Default for ColorSpace {