#[non_exhaustive]pub struct ProfileTable {
pub dims: [u32; 3],
pub data: Vec<f32>,
pub data2: Option<Vec<f32>>,
pub encoding: TableEncoding,
}Expand description
A hue/saturation/value table (ProfileHueSatMapData, ProfileLookTableData).
Entries are (hue shift in degrees, saturation scale, value scale) triples, stored with
the saturation division varying fastest, then the hue division, then the value division.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.dims: [u32; 3]Divisions [hue, saturation, value], each at least 1.
data: Vec<f32>First table: 3 * hue * sat * val floats. For a hue/sat map this is the table for
the first calibration illuminant.
data2: Option<Vec<f32>>Hue/sat maps only: the table for the second illuminant (same dimensions).
encoding: TableEncodingEncoding of the RGB values the table is indexed by.
Implementations§
Trait Implementations§
Source§impl Clone for ProfileTable
impl Clone for ProfileTable
Source§impl Debug for ProfileTable
impl Debug for ProfileTable
Source§impl PartialEq for ProfileTable
impl PartialEq for ProfileTable
impl StructuralPartialEq for ProfileTable
Auto Trait Implementations§
impl Forget for ProfileTable
impl Freeze for ProfileTable
impl RefUnwindSafe for ProfileTable
impl Send for ProfileTable
impl Sync for ProfileTable
impl Unpin for ProfileTable
impl UnsafeUnpin for ProfileTable
impl UnwindSafe for ProfileTable
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