pub enum ICCProfile {
ICC(Vec<u8>),
CIELab(Vec<u8>),
}Expand description
A colour profile carried by a JP2 colr box: either a raw ICC
profile or a CIELab colour specification (36 bytes, see
CIE_LAB_BYTE_SIZE).
Variants§
ICC(Vec<u8>)
An ICC profile (the profile bytes, header included).
CIELab(Vec<u8>)
A CIELab colour specification (the fixed 36-byte layout).
Implementations§
Source§impl ICCProfile
impl ICCProfile
Sourcepub fn new_icc(data: &[u8]) -> ICCProfile
pub fn new_icc(data: &[u8]) -> ICCProfile
Wraps raw ICC profile bytes.
Sourcepub fn new_cielab(data: &[u8]) -> ICCProfile
pub fn new_cielab(data: &[u8]) -> ICCProfile
Wraps raw CIELab colour-specification bytes.
Trait Implementations§
Source§impl Clone for ICCProfile
impl Clone for ICCProfile
Source§fn clone(&self) -> ICCProfile
fn clone(&self) -> ICCProfile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Forget for ICCProfile
impl Freeze for ICCProfile
impl Move for ICCProfile
impl RefUnwindSafe for ICCProfile
impl Send for ICCProfile
impl Sync for ICCProfile
impl Unpin for ICCProfile
impl UnsafeUnpin for ICCProfile
impl UnwindSafe for ICCProfile
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