[][src]Struct plotters::series::PointSeries

pub struct PointSeries<'a, Coord, I: IntoIterator<Item = Coord>, E, Size: SizeDesc + Clone> { /* fields omitted */ }

The point plot object, which takes an iterator of points in guest coordinate system and create an element for each point

Methods

impl<'a, Coord, I: IntoIterator<Item = Coord>, E, Size: SizeDesc + Clone> PointSeries<'a, Coord, I, E, Size> where
    E: PointElement<Coord, Size>, 
[src]

pub fn new<S: Into<ShapeStyle>>(iter: I, size: Size, style: S) -> Self[src]

Create a new point series with the element that implements point trait. You may also use a more general way to create a point series with of_element function which allows a customized element construction function

impl<'a, Coord, I: IntoIterator<Item = Coord>, E, Size: SizeDesc + Clone> PointSeries<'a, Coord, I, E, Size>[src]

pub fn of_element<S: Into<ShapeStyle>, F: Fn(Coord, Size, ShapeStyle) -> E>(
    iter: I,
    size: Size,
    style: S,
    cons: &'a F
) -> Self
[src]

Create a new point series. Similar to PointSeries::new but it doesn't requires the element implements point trait. So instead of using the point constructor, it uses the customized function for element creation

Trait Implementations

impl<'a, Coord, I: IntoIterator<Item = Coord>, E, Size: SizeDesc + Clone> Iterator for PointSeries<'a, Coord, I, E, Size>[src]

type Item = E

The type of the elements being iterated over.

Auto Trait Implementations

impl<'a, Coord, I, E, Size> !Send for PointSeries<'a, Coord, I, E, Size>

impl<'a, Coord, I, E, Size> Unpin for PointSeries<'a, Coord, I, E, Size> where
    Size: Unpin,
    <I as IntoIterator>::IntoIter: Unpin

impl<'a, Coord, I, E, Size> !Sync for PointSeries<'a, Coord, I, E, Size>

impl<'a, Coord, I, E, Size> !UnwindSafe for PointSeries<'a, Coord, I, E, Size>

impl<'a, Coord, I, E, Size> !RefUnwindSafe for PointSeries<'a, Coord, I, E, Size>

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> SetParameter for T

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    D: AdaptFrom<S, Swp, Dwp, T>,
    Dwp: WhitePoint,
    Swp: WhitePoint,
    T: Component + Float
[src]

impl<T, U> ConvertInto<U> for T where
    U: ConvertFrom<T>, 
[src]

impl<Iter> PathIterator for Iter where
    Iter: Iterator<Item = PathEvent>, 

impl<Iter> FlattenedIterator for Iter where
    Iter: Iterator<Item = FlattenedEvent>, 

impl<Iter> QuadraticPathIterator for Iter where
    Iter: Iterator<Item = QuadraticEvent>,