pub enum Shape<'a> {
Continuous(Box<dyn Fn(f32) -> f32 + 'a>),
Points(&'a [(f32, f32)]),
Lines(&'a [(f32, f32)]),
Steps(&'a [(f32, f32)]),
Bars(&'a [(f32, f32)]),
}
Expand description
Specifies different kinds of plotted data.
Variants§
Continuous(Box<dyn Fn(f32) -> f32 + 'a>)
Real value function.
Points(&'a [(f32, f32)])
Points of a scatter plot.
Lines(&'a [(f32, f32)])
Points connected with lines.
Steps(&'a [(f32, f32)])
Points connected in step fashion.
Bars(&'a [(f32, f32)])
Points represented with bars.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Shape<'a>
impl<'a> !Send for Shape<'a>
impl<'a> !Sync for Shape<'a>
impl<'a> Unpin for Shape<'a>
impl<'a> !UnwindSafe for Shape<'a>
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