Struct embedded_plots::single_plot::SinglePlot
source · [−]pub struct SinglePlot<'a> { /* private fields */ }Expand description
Display agnostic single curve plot object
Implementations
sourceimpl<'a> SinglePlot<'a>
impl<'a> SinglePlot<'a>
sourcepub fn new(
curve: &'a Curve<'a>,
x_scale: Scale,
y_scale: Scale
) -> SinglePlot<'_>
pub fn new(
curve: &'a Curve<'a>,
x_scale: Scale,
y_scale: Scale
) -> SinglePlot<'_>
create SinglePlot object with manual range
sourcepub fn into_drawable<C: PixelColor + Default>(
self,
top_left: Point,
bottom_right: Point
) -> DrawableSinglePlot<'a, C>
pub fn into_drawable<C: PixelColor + Default>(
self,
top_left: Point,
bottom_right: Point
) -> DrawableSinglePlot<'a, C>
convert to drawable form for specific display
Auto Trait Implementations
impl<'a> RefUnwindSafe for SinglePlot<'a>
impl<'a> Send for SinglePlot<'a>
impl<'a> Sync for SinglePlot<'a>
impl<'a> Unpin for SinglePlot<'a>
impl<'a> UnwindSafe for SinglePlot<'a>
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