[−][src]Struct charts::Color
A struct that represents a color.
Methods
impl Color
[src]
pub fn from_vec_of_hex_strings(color_strings: Vec<&str>) -> Vec<Self>
[src]
Generate a color scheme from a string. Useful when displaying a single dataset that requires one color.
pub fn color_scheme_10() -> Vec<Self>
[src]
Generate a color scheme made of 10 colors.
pub fn color_scheme_tableau_10() -> Vec<Self>
[src]
An array of ten categorical colors authored by Tableau as part of Tableau 10.
pub fn color_scheme_dark() -> Vec<Self>
[src]
An array of eight categorical colors
pub fn as_hex(&self) -> String
[src]
Represent a color as a hex string.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Color
impl Send for Color
impl Sync for Color
impl Unpin for Color
impl UnwindSafe for Color
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,