#[repr(C)]pub union StyleColorValue {
pub palette: ColorPaletteIndex,
pub rgb: ColorRgb,
pub _padding: u64,
}Expand description
Style color value union.
Use the tag to determine which field is active.
Fields§
§palette: ColorPaletteIndex§rgb: ColorRgb§_padding: u64Trait Implementations§
Source§impl Clone for StyleColorValue
impl Clone for StyleColorValue
Source§fn clone(&self) -> StyleColorValue
fn clone(&self) -> StyleColorValue
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 StyleColorValue
Auto Trait Implementations§
impl Freeze for StyleColorValue
impl RefUnwindSafe for StyleColorValue
impl Send for StyleColorValue
impl Sync for StyleColorValue
impl Unpin for StyleColorValue
impl UnsafeUnpin for StyleColorValue
impl UnwindSafe for StyleColorValue
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