pub struct ColorSpecification {
pub method: u8,
pub precedence: i8,
pub approximation: u8,
pub enum_cs: Option<EnumeratedColorSpace>,
pub icc_profile: Option<Vec<u8>>,
}Expand description
Color specification box (colr)
Fields§
§method: u8Method (1 = enumerated, 2 = restricted ICC profile)
precedence: i8Precedence
approximation: u8Approximation
enum_cs: Option<EnumeratedColorSpace>Enumerated color space (if method == 1)
icc_profile: Option<Vec<u8>>ICC profile data (if method == 2)
Implementations§
Trait Implementations§
Source§impl Clone for ColorSpecification
impl Clone for ColorSpecification
Source§fn clone(&self) -> ColorSpecification
fn clone(&self) -> ColorSpecification
Returns a duplicate of the value. Read more
1.0.0 · 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 Freeze 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