pub struct RGBColor(pub u8, pub u8, pub u8);
Expand description
The color described by its RGB value
Tuple Fields§
§0: u8
§1: u8
§2: u8
Trait Implementations§
Source§impl BackendStyle for RGBColor
impl BackendStyle for RGBColor
Source§fn color(&self) -> BackendColor
fn color(&self) -> BackendColor
Get the color of current style
Source§fn stroke_width(&self) -> u32
fn stroke_width(&self) -> u32
Get the stroke width of current style
Source§impl Color for RGBColor
impl Color for RGBColor
Source§fn to_backend_color(&self) -> BackendColor
fn to_backend_color(&self) -> BackendColor
Normalize this color representation to the backend color
Source§fn to_rgba(&self) -> RGBAColor
fn to_rgba(&self) -> RGBAColor
Convert the color into the RGBA color which is internally used by Plotters
Source§fn filled(&self) -> ShapeStylewhere
Self: Sized,
fn filled(&self) -> ShapeStylewhere
Self: Sized,
Make a filled style form the color
Source§fn stroke_width(&self, width: u32) -> ShapeStylewhere
Self: Sized,
fn stroke_width(&self, width: u32) -> ShapeStylewhere
Self: Sized,
Make a shape style with stroke width from a color
impl Copy for RGBColor
impl Eq for RGBColor
impl StructuralPartialEq for RGBColor
Auto Trait Implementations§
impl Freeze for RGBColor
impl RefUnwindSafe for RGBColor
impl Send for RGBColor
impl Sync for RGBColor
impl Unpin for RGBColor
impl UnwindSafe for RGBColor
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 3 bytes