#[non_exhaustive]pub struct ColorSpecification {
pub method: u8,
pub precedence: u8,
pub approximation: u8,
pub payload: Vec<u8>,
}Expand description
One Colour Specification box (colr, I.5.3.3), as stored.
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.method: u8METH: 1 for an enumerated color space, 2 for a restricted ICC
profile. Other values are reserved by this standard (ISO/IEC 15444-2
defines more), and such a box is ignored.
precedence: u8PREC: the precedence. The standard reserves it and requires 0, and
a reader ignores it. ISO/IEC 15444-2 reads the byte as a signed value.
approximation: u8APPROX: the color space approximation. The standard requires 0, and
a reader ignores it.
payload: Vec<u8>The bytes after APPROX, verbatim: EnumCS (four bytes, big-endian)
for METH 1, the ICC profile for METH 2.
Trait Implementations§
Source§impl Clone for ColorSpecification
impl Clone for ColorSpecification
Source§impl Debug for ColorSpecification
impl Debug for ColorSpecification
impl Eq for ColorSpecification
Source§impl PartialEq for ColorSpecification
impl PartialEq for ColorSpecification
impl StructuralPartialEq for ColorSpecification
Auto Trait Implementations§
impl Forget for ColorSpecification
impl Freeze for ColorSpecification
impl Move for ColorSpecification
impl RefUnwindSafe for ColorSpecification
impl Send for ColorSpecification
impl Sync for ColorSpecification
impl Unpin for ColorSpecification
impl UnsafeUnpin for ColorSpecification
impl UnwindSafe for ColorSpecification
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