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 Relativewhere
&'static str: Freeze,
*const u8 is !null: Freeze,
PhantomData<Channel>: Freeze,
PhantomData<Node>: Freeze,
*const Node is !null: Freeze,
*const Color is !null: Freeze,
PhantomData<Color>: Freeze,
*const Relative is !null: Freeze,
PhantomData<Relative>: Freeze,
*const Mix is !null: Freeze,
PhantomData<Mix>: Freeze,
PhantomData<u8>: Freeze,
PhantomData<RelativeChannel>: Freeze,
impl Move for Relative
impl RefUnwindSafe for Relative
impl Send for Relative
impl Sync for Relative
impl Unpin for Relative
impl UnsafeUnpin for Relativewhere
&'static str: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<Channel>: UnsafeUnpin,
PhantomData<Node>: UnsafeUnpin,
*const Node is !null: UnsafeUnpin,
*const Color is !null: UnsafeUnpin,
PhantomData<Color>: UnsafeUnpin,
*const Relative is !null: UnsafeUnpin,
PhantomData<Relative>: UnsafeUnpin,
*const Mix is !null: UnsafeUnpin,
PhantomData<Mix>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<RelativeChannel>: UnsafeUnpin,
impl UnwindSafe for Relativewhere
&'static str: UnwindSafe,
RawVecInner: UnwindSafe,
BoxRaw<Node>: UnwindSafe,
BoxRaw<Color>: UnwindSafe,
BoxRaw<Relative>: UnwindSafe,
BoxRaw<Mix>: UnwindSafe,
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