#[non_exhaustive]pub enum SampleBounds {
Format,
Nominal,
}Expand description
Choose the numeric bounds to check on stored pixels.
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.
Format
Require finite float color samples, normalized alpha, and maximum
stored alpha for a format declaring AlphaMode::Opaque. Allow finite
extended RGB and gray values, and integer footroom and headroom.
Untagged numeric channels retain their full storage domain.
Nominal
Also require narrow-range integer color codes between nominal black
and white and RGB, gray, or CMYK float color samples in [0, 1].
Other color models keep their format-level bounds.
Trait Implementations§
Source§impl Clone for SampleBounds
impl Clone for SampleBounds
Source§fn clone(&self) -> SampleBounds
fn clone(&self) -> SampleBounds
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 moreimpl Copy for SampleBounds
Source§impl Debug for SampleBounds
impl Debug for SampleBounds
Source§impl Default for SampleBounds
impl Default for SampleBounds
Source§fn default() -> SampleBounds
fn default() -> SampleBounds
Returns the “default value” for a type. Read more
impl Eq for SampleBounds
Source§impl PartialEq for SampleBounds
impl PartialEq for SampleBounds
impl StructuralPartialEq for SampleBounds
Auto Trait Implementations§
impl Freeze for SampleBounds
impl RefUnwindSafe for SampleBounds
impl Send for SampleBounds
impl Sync for SampleBounds
impl Unpin for SampleBounds
impl UnsafeUnpin for SampleBounds
impl UnwindSafe for SampleBounds
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