Enum napchart::ChartColor [−][src]
pub enum ChartColor { Red, Blue, Brown, Green, Gray, Yellow, Purple, Pink, Custom0, Custom1, Custom2, Custom3, }
Expand description
The colors available for chart elements
Variants
Implementations
True if a color is custom, false if it’s one of the builtin colors
assert!(!ChartColor::Blue.is_custom()); assert!(ChartColor::Custom2.is_custom());
True if a color is builtin, false if it’s one of the custom colors
assert!(ChartColor::Blue.is_builtin()); assert!(!ChartColor::Custom2.is_builtin());
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for ChartColor
impl Send for ChartColor
impl Sync for ChartColor
impl Unpin for ChartColor
impl UnwindSafe for ChartColor
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more