pub enum TechnicalChunk {
Gamma,
Srgb,
Chromaticities,
PhysicalDimensions,
IccProfile,
SignificantBits,
}Expand description
A chunk that describes how to read the samples, and nothing else.
The whitelist as a closed type: a chunk that is not one of these has no representation here, so no code path can copy one by accident.
Variants§
Gamma
gAMA — the display gamma the samples were encoded against.
Srgb
sRGB — a declaration that the samples are sRGB, and with what intent.
Chromaticities
cHRM — the chromaticities of the primaries and of the white point.
PhysicalDimensions
pHYs — the physical size of a pixel.
IccProfile
iCCP — an embedded ICC colour profile.
The one whitelisted chunk that can be large, and the one whose contents are not a handful of integers. It is still a description of colour: a profile identifies a device class or a working space, not an owner.
SignificantBits
sBIT — how many bits of each sample the original actually used.
Copied verbatim like the rest. Worth knowing that a container declaring fewer significant bits than its samples carry is a poor container for this purpose, because the payload lives in exactly the bits such a chunk claims are meaningless.
Implementations§
Trait Implementations§
Source§impl Clone for TechnicalChunk
impl Clone for TechnicalChunk
Source§fn clone(&self) -> TechnicalChunk
fn clone(&self) -> TechnicalChunk
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for TechnicalChunk
Source§impl Debug for TechnicalChunk
impl Debug for TechnicalChunk
impl Eq for TechnicalChunk
Source§impl PartialEq for TechnicalChunk
impl PartialEq for TechnicalChunk
impl StructuralPartialEq for TechnicalChunk
Auto Trait Implementations§
impl Freeze for TechnicalChunk
impl RefUnwindSafe for TechnicalChunk
impl Send for TechnicalChunk
impl Sync for TechnicalChunk
impl Unpin for TechnicalChunk
impl UnsafeUnpin for TechnicalChunk
impl UnwindSafe for TechnicalChunk
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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>
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>
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