Add ColorSpace::as_u8()
This commit is contained in:
parent
bfd947f573
commit
4e43c8ba01
1 changed files with 4 additions and 0 deletions
|
@ -24,6 +24,10 @@ impl ColorSpace {
|
||||||
pub const fn is_linear(self) -> bool {
|
pub const fn is_linear(self) -> bool {
|
||||||
matches!(self, Self::Linear)
|
matches!(self, Self::Linear)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub const fn as_u8(self) -> u8 {
|
||||||
|
self as u8
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Default for ColorSpace {
|
impl Default for ColorSpace {
|
||||||
|
|
Loading…
Reference in a new issue