pub struct ColorChange {
pub color: (u8, u8, u8),
pub target: ColorTarget,
}
Expand description
Represents a color change.
Fields§
§color: (u8, u8, u8)
The color to change to.
A string that represents the color to change to, either as a hex RGB color in the form #RRGGBB, or as one of the color names existing as part of CSS3 (e.g., “red”).
target: ColorTarget
The target of the color change.
Specifies which part of the content to change the color of.
Trait Implementations§
Source§impl Clone for ColorChange
impl Clone for ColorChange
Source§fn clone(&self) -> ColorChange
fn clone(&self) -> ColorChange
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 moreSource§impl Debug for ColorChange
impl Debug for ColorChange
Source§impl PartialEq for ColorChange
impl PartialEq for ColorChange
impl Copy for ColorChange
impl StructuralPartialEq for ColorChange
Auto Trait Implementations§
impl Freeze for ColorChange
impl RefUnwindSafe for ColorChange
impl Send for ColorChange
impl Sync for ColorChange
impl Unpin for ColorChange
impl UnwindSafe for ColorChange
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