Trait PointCollection

Source
pub trait PointCollection<'a, Coord> {
    type Borrow: Borrow<Coord>;
    type IntoIter: IntoIterator<Item = Self::Borrow>;

    // Required method
    fn point_iter(self) -> Self::IntoIter;
}
Expand description

A type which is logically a collection of points, under any given coordinate system

Required Associated Types§

Source

type Borrow: Borrow<Coord>

The item in point iterator

Source

type IntoIter: IntoIterator<Item = Self::Borrow>

The point iterator

Required Methods§

Source

fn point_iter(self) -> Self::IntoIter

framework to do the coordinate mapping

Implementors§

Source§

impl<'a, Coord, DB: DrawingBackend> PointCollection<'a, Coord> for &'a EmptyElement<Coord, DB>

Source§

impl<'a, DB: DrawingBackend, Coord: Clone> PointCollection<'a, Coord> for &'a DynElement<DB, Coord>

Source§

impl<'b, 'a, Coord: 'a> PointCollection<'a, Coord> for &'a Circle<'b, Coord>

Source§

impl<'b, 'a, Coord: 'a> PointCollection<'a, Coord> for &'a Cross<'b, Coord>

Source§

impl<'b, 'a, Coord: 'a> PointCollection<'a, Coord> for &'a Path<'b, Coord>

Source§

impl<'b, 'a, Coord: 'a> PointCollection<'a, Coord> for &'a Pixel<'b, Coord>

Source§

impl<'b, 'a, Coord: 'a> PointCollection<'a, Coord> for &'a Rectangle<'b, Coord>

Source§

impl<'b, 'a, Coord: 'a, T: Borrow<str> + 'a> PointCollection<'a, Coord> for &'a MultiLineText<'b, Coord, T>

Source§

impl<'b, 'a, Coord: 'a, T: Borrow<str> + 'a> PointCollection<'a, Coord> for &'a Text<'b, Coord, T>

Source§

impl<'b, 'a, X: 'a, Y: PartialOrd + 'a> PointCollection<'a, (X, Y)> for &'a CandleStick<'b, X, Y>

Source§

impl<'b, Coord, DB: DrawingBackend, A, B> PointCollection<'b, Coord> for &'b ComposedElement<Coord, DB, A, B>
where A: Drawable<DB>, B: Drawable<DB>,