Struct embedded_plots::curve::Curve  
source · [−]Expand description
curve object that contains data to be plotted
Fields
x_range: Range<i32>y_range: Range<i32>Implementations
sourceimpl<'a> Curve<'a>
 
impl<'a> Curve<'a>
sourcepub fn new(
    points: &'a [PlotPoint], 
    x_range: Range<i32>, 
    y_range: Range<i32>
) -> Curve<'_>
 
pub fn new(
    points: &'a [PlotPoint], 
    x_range: Range<i32>, 
    y_range: Range<i32>
) -> Curve<'_>
create new curve data with manual ranges
sourcepub fn from_data(points: &'a [PlotPoint]) -> Curve<'_>
 
pub fn from_data(points: &'a [PlotPoint]) -> Curve<'_>
create new curve data with ranges automatically deducted based on provided points
sourcepub fn into_drawable_curve<C>(
    &self, 
    top_left: &'a Point, 
    bottom_right: &'a Point
) -> DrawableCurve<C, impl Iterator<Item = Point> + '_> where
    C: PixelColor, 
 
pub fn into_drawable_curve<C>(
    &self, 
    top_left: &'a Point, 
    bottom_right: &'a Point
) -> DrawableCurve<C, impl Iterator<Item = Point> + '_> where
    C: PixelColor, 
create curve that can be drawed on specific display
Auto Trait Implementations
impl<'a> RefUnwindSafe for Curve<'a>
impl<'a> Send for Curve<'a>
impl<'a> Sync for Curve<'a>
impl<'a> Unpin for Curve<'a>
impl<'a> UnwindSafe for Curve<'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