#[repr(C)]pub struct StyleColor {
pub tag: Type,
pub value: StyleColorValue,
}Expand description
Style color (tagged union).
A color used in a style attribute. Can be unset (none), a palette index, or a direct RGB value.
Fields§
§tag: Type§value: StyleColorValueTrait Implementations§
Source§impl Clone for StyleColor
impl Clone for StyleColor
Source§fn clone(&self) -> StyleColor
fn clone(&self) -> StyleColor
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 moreimpl Copy for StyleColor
Auto Trait Implementations§
impl Freeze for StyleColor
impl RefUnwindSafe for StyleColor
impl Send for StyleColor
impl Sync for StyleColor
impl Unpin for StyleColor
impl UnsafeUnpin for StyleColor
impl UnwindSafe for StyleColor
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