#[non_exhaustive]pub enum ShadingColorSpace {
DeviceGray,
DeviceRGB,
DeviceCMYK,
ICCBased {
n: u32,
profile_hash: ProfileHash,
profile_data: Arc<Vec<u8>>,
},
CalRGB {
white_point: [f64; 3],
matrix: Option<[f64; 9]>,
gamma: Option<[f64; 3]>,
},
CalGray {
white_point: [f64; 3],
gamma: Option<f64>,
},
}Expand description
Color space carried through the display list for native shading output.
Marked #[non_exhaustive]; cross-crate match expressions need a
wildcard arm.
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.
Implementations§
Source§impl ShadingColorSpace
impl ShadingColorSpace
Sourcepub fn num_components(&self) -> usize
pub fn num_components(&self) -> usize
Number of color components in this color space.
Trait Implementations§
Source§impl Clone for ShadingColorSpace
impl Clone for ShadingColorSpace
Source§fn clone(&self) -> ShadingColorSpace
fn clone(&self) -> ShadingColorSpace
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 moreSource§impl Debug for ShadingColorSpace
impl Debug for ShadingColorSpace
Auto Trait Implementations§
impl Freeze for ShadingColorSpace
impl RefUnwindSafe for ShadingColorSpace
impl Send for ShadingColorSpace
impl Sync for ShadingColorSpace
impl Unpin for ShadingColorSpace
impl UnsafeUnpin for ShadingColorSpace
impl UnwindSafe for ShadingColorSpace
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