pub struct Relative {
pub function: &'static str,
pub space: Option<Predefined>,
pub origin: Color,
pub channels: Vec<RelativeChannel>,
pub alpha: Option<RelativeChannel>,
}Expand description
A relative color: an origin color and channels that may name the origin’s, kept as written until there’s a value to work them out from.
Fields§
§function: &'static strrgb, hsl, hwb, lab, lch, oklab, oklch or color.
space: Option<Predefined>For color(), its space.
origin: Color§channels: Vec<RelativeChannel>§alpha: Option<RelativeChannel>Trait Implementations§
impl StructuralPartialEq for Relative
Auto Trait Implementations§
impl Forget for Relative
impl Freeze for Relative
impl Move for Relative
impl RefUnwindSafe for Relative
impl Send for Relative
impl Sync for Relative
impl Unpin for Relative
impl UnsafeUnpin for Relative
impl UnwindSafe for Relative
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