pub enum Color {
CurrentColor,
RGBA(RGBA),
}
Expand description
A color value.
Variants§
Implementations§
§impl Color
impl Color
§impl Color
impl Color
pub const fn black() -> Color
pub const fn silver() -> Color
pub const fn gray() -> Color
pub const fn white() -> Color
pub const fn maroon() -> Color
pub const fn red() -> Color
pub const fn purple() -> Color
pub const fn fuchsia() -> Color
pub const fn green() -> Color
pub const fn lime() -> Color
pub const fn olive() -> Color
pub const fn yellow() -> Color
pub const fn blue() -> Color
pub const fn teal() -> Color
pub const fn aqua() -> Color
pub const fn aliceblue() -> Color
pub const fn antiquewhite() -> Color
pub const fn aquamarine() -> Color
pub const fn azure() -> Color
pub const fn beige() -> Color
pub const fn bisque() -> Color
pub const fn blanchedalmond() -> Color
pub const fn blueviolet() -> Color
pub const fn brown() -> Color
pub const fn burlywood() -> Color
pub const fn cadetblue() -> Color
pub const fn chartreuse() -> Color
pub const fn chocolate() -> Color
pub const fn coral() -> Color
pub const fn cornflowerblue() -> Color
pub const fn cornsilk() -> Color
pub const fn crimson() -> Color
pub const fn cyan() -> Color
pub const fn darkblue() -> Color
pub const fn darkcyan() -> Color
pub const fn darkgoldenrod() -> Color
pub const fn darkgray() -> Color
pub const fn darkgreen() -> Color
pub const fn darkgrey() -> Color
pub const fn darkkhaki() -> Color
pub const fn darkmagenta() -> Color
pub const fn darkolivegreen() -> Color
pub const fn darkorange() -> Color
pub const fn darkorchid() -> Color
pub const fn darkred() -> Color
pub const fn darksalmon() -> Color
pub const fn darkseagreen() -> Color
pub const fn darkslateblue() -> Color
pub const fn darkslategray() -> Color
pub const fn darkslategrey() -> Color
pub const fn darkturquoise() -> Color
pub const fn darkviolet() -> Color
pub const fn deeppink() -> Color
pub const fn deepskyblue() -> Color
pub const fn dimgray() -> Color
pub const fn dimgrey() -> Color
pub const fn dodgerblue() -> Color
pub const fn firebrick() -> Color
pub const fn floralwhite() -> Color
pub const fn forestgreen() -> Color
pub const fn gainsboro() -> Color
pub const fn ghostwhite() -> Color
pub const fn gold() -> Color
pub const fn goldenrod() -> Color
pub const fn greenyellow() -> Color
pub const fn grey() -> Color
pub const fn honeydew() -> Color
pub const fn hotpink() -> Color
pub const fn indianred() -> Color
pub const fn indigo() -> Color
pub const fn ivory() -> Color
pub const fn khaki() -> Color
pub const fn lavender() -> Color
pub const fn lavenderblush() -> Color
pub const fn lawngreen() -> Color
pub const fn lemonchiffon() -> Color
pub const fn lightblue() -> Color
pub const fn lightcoral() -> Color
pub const fn lightcyan() -> Color
pub const fn lightgoldenrodyellow() -> Color
pub const fn lightgray() -> Color
pub const fn lightgreen() -> Color
pub const fn lightgrey() -> Color
pub const fn lightpink() -> Color
pub const fn lightsalmon() -> Color
pub const fn lightseagreen() -> Color
pub const fn lightskyblue() -> Color
pub const fn lightslategray() -> Color
pub const fn lightslategrey() -> Color
pub const fn lightsteelblue() -> Color
pub const fn lightyellow() -> Color
pub const fn limegreen() -> Color
pub const fn linen() -> Color
pub const fn magenta() -> Color
pub const fn mediumaquamarine() -> Color
pub const fn mediumblue() -> Color
pub const fn mediumorchid() -> Color
pub const fn mediumpurple() -> Color
pub const fn mediumseagreen() -> Color
pub const fn mediumslateblue() -> Color
pub const fn mediumspringgreen() -> Color
pub const fn mediumturquoise() -> Color
pub const fn mediumvioletred() -> Color
pub const fn midnightblue() -> Color
pub const fn mintcream() -> Color
pub const fn mistyrose() -> Color
pub const fn moccasin() -> Color
pub const fn oldlace() -> Color
pub const fn olivedrab() -> Color
pub const fn orange() -> Color
pub const fn orangered() -> Color
pub const fn orchid() -> Color
pub const fn palegoldenrod() -> Color
pub const fn palegreen() -> Color
pub const fn paleturquoise() -> Color
pub const fn palevioletred() -> Color
pub const fn papayawhip() -> Color
pub const fn peachpuff() -> Color
pub const fn peru() -> Color
pub const fn pink() -> Color
pub const fn plum() -> Color
pub const fn powderblue() -> Color
pub const fn rebeccapurple() -> Color
pub const fn rosybrown() -> Color
pub const fn royalblue() -> Color
pub const fn saddlebrown() -> Color
pub const fn salmon() -> Color
pub const fn sandybrown() -> Color
pub const fn seagreen() -> Color
pub const fn seashell() -> Color
pub const fn sienna() -> Color
pub const fn skyblue() -> Color
pub const fn slateblue() -> Color
pub const fn slategray() -> Color
pub const fn slategrey() -> Color
pub const fn snow() -> Color
pub const fn springgreen() -> Color
pub const fn steelblue() -> Color
pub const fn tan() -> Color
pub const fn thistle() -> Color
pub const fn tomato() -> Color
pub const fn turquoise() -> Color
pub const fn violet() -> Color
pub const fn wheat() -> Color
pub const fn whitesmoke() -> Color
pub const fn yellowgreen() -> Color
pub const fn transparent() -> Color
Trait Implementations§
impl Copy for Color
impl StructuralPartialEq for Color
Auto Trait Implementations§
impl Freeze for Color
impl RefUnwindSafe for Color
impl Send for Color
impl Sync for Color
impl Unpin for Color
impl UnwindSafe for Color
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.