Expand description
The color described by its RGB value
Tuple Fields
0: u8
1: u8
2: u8
Trait Implementations
sourceimpl BackendStyle for RGBColor
impl BackendStyle for RGBColor
fn stroke_width(&self) -> u32
fn stroke_width(&self) -> u32
Get the stroke width of current style
sourceimpl Color for RGBColor
impl Color for RGBColor
sourcefn to_backend_color(&self) -> BackendColor
fn to_backend_color(&self) -> BackendColor
Normalize this color representation to the backend color
sourcefn to_rgba(&self) -> RGBAColor
fn to_rgba(&self) -> RGBAColor
Convert the color into the RGBA color which is internally used by Plotters
sourcefn filled(&self) -> ShapeStyle
fn filled(&self) -> ShapeStyle
Make a filled style form the color
sourcefn stroke_width(&self, width: u32) -> ShapeStyle
fn stroke_width(&self, width: u32) -> ShapeStyle
Make a shape style with stroke width from a color
sourceimpl PartialEq<RGBColor> for RGBColor
impl PartialEq<RGBColor> for RGBColor
impl Copy for RGBColor
impl Eq for RGBColor
impl StructuralEq for RGBColor
impl StructuralPartialEq for RGBColor
Auto Trait Implementations
impl RefUnwindSafe for RGBColor
impl Send for RGBColor
impl Sync for RGBColor
impl Unpin for RGBColor
impl UnwindSafe for RGBColor
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.