pub enum AseColorValue {
Rgb {
r: f32,
g: f32,
b: f32,
type_: AseColorType,
},
Cmyk {
c: f32,
m: f32,
y: f32,
k: f32,
type_: AseColorType,
},
Gray {
k: f32,
type_: AseColorType,
},
Lab {
l: f32,
a: f32,
b: f32,
type_: AseColorType,
},
}Expand description
TS AseColor.color union (RGB / CMYK / Gray / LAB), несёт type.
Variants§
Trait Implementations§
Source§impl Clone for AseColorValue
impl Clone for AseColorValue
Source§fn clone(&self) -> AseColorValue
fn clone(&self) -> AseColorValue
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 AseColorValue
impl Debug for AseColorValue
Source§impl PartialEq for AseColorValue
impl PartialEq for AseColorValue
Source§fn eq(&self, other: &AseColorValue) -> bool
fn eq(&self, other: &AseColorValue) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AseColorValue
Auto Trait Implementations§
impl Freeze for AseColorValue
impl RefUnwindSafe for AseColorValue
impl Send for AseColorValue
impl Sync for AseColorValue
impl Unpin for AseColorValue
impl UnsafeUnpin for AseColorValue
impl UnwindSafe for AseColorValue
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