Struct embedded_plots::single_plot::DrawableSinglePlot
source · [−]pub struct DrawableSinglePlot<'a, C> where
C: PixelColor + Default, { /* private fields */ }Expand description
Drawable single plot object, constructed for specific display
Implementations
sourceimpl<'a, C> DrawableSinglePlot<'a, C> where
C: PixelColor + Default,
impl<'a, C> DrawableSinglePlot<'a, C> where
C: PixelColor + Default,
builder methods to modify plot decoration
pub fn set_color(self, color: C) -> DrawableSinglePlot<'a, C>
sourcepub fn set_text_color(self, color: C) -> DrawableSinglePlot<'a, C>
pub fn set_text_color(self, color: C) -> DrawableSinglePlot<'a, C>
if not set, main color will be used
sourcepub fn set_axis_color(self, color: C) -> DrawableSinglePlot<'a, C>
pub fn set_axis_color(self, color: C) -> DrawableSinglePlot<'a, C>
if not set, main color will be used
sourcepub fn set_thickness(self, thickness: usize) -> DrawableSinglePlot<'a, C>
pub fn set_thickness(self, thickness: usize) -> DrawableSinglePlot<'a, C>
set curve thickness
sourcepub fn set_axis_thickness(self, thickness: usize) -> DrawableSinglePlot<'a, C>
pub fn set_axis_thickness(self, thickness: usize) -> DrawableSinglePlot<'a, C>
set axis thickness
Trait Implementations
sourceimpl<'a, C> Drawable<C> for DrawableSinglePlot<'a, C> where
C: PixelColor + Default,
impl<'a, C> Drawable<C> for DrawableSinglePlot<'a, C> where
C: PixelColor + Default,
Auto Trait Implementations
impl<'a, C> RefUnwindSafe for DrawableSinglePlot<'a, C> where
C: RefUnwindSafe,
impl<'a, C> Send for DrawableSinglePlot<'a, C> where
C: Send,
impl<'a, C> Sync for DrawableSinglePlot<'a, C> where
C: Sync,
impl<'a, C> Unpin for DrawableSinglePlot<'a, C> where
C: Unpin,
impl<'a, C> UnwindSafe for DrawableSinglePlot<'a, C> where
C: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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