#[non_exhaustive]pub enum TableEncoding {
Linear,
Srgb,
}Expand description
How the RGB values are encoded before a table converts them to HSV
(ProfileHueSatMapEncoding, ProfileLookTableEncoding).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Linear
Linear (the default).
Srgb
The sRGB transfer curve: values are encoded before the HSV conversion and decoded after the table, which spaces the value dimension perceptually.
Trait Implementations§
Source§impl Clone for TableEncoding
impl Clone for TableEncoding
impl Copy for TableEncoding
Source§impl Debug for TableEncoding
impl Debug for TableEncoding
Source§impl Default for TableEncoding
impl Default for TableEncoding
impl Eq for TableEncoding
Source§impl PartialEq for TableEncoding
impl PartialEq for TableEncoding
impl StructuralPartialEq for TableEncoding
Auto Trait Implementations§
impl Forget for TableEncoding
impl Freeze for TableEncoding
impl RefUnwindSafe for TableEncoding
impl Send for TableEncoding
impl Sync for TableEncoding
impl Unpin for TableEncoding
impl UnsafeUnpin for TableEncoding
impl UnwindSafe for TableEncoding
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more