Trait PointElement

pub trait PointElement<Coord, Size>
where Size: SizeDesc,
{ // Required method fn make_point(pos: Coord, size: Size, style: ShapeStyle) -> Self; }
Expand description

A common trait for elements that can be interpreted as points: A cross, a circle, a triangle marker…

This is used internally by Plotters and should probably not be included in user code. See EmptyElement for more information and examples.

Required Methods§

fn make_point(pos: Coord, size: Size, style: ShapeStyle) -> Self

Point creator.

This is used internally by Plotters and should probably not be included in user code. See EmptyElement for more information and examples.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

§

impl<Coord, Size> PointElement<Coord, Size> for Circle<Coord, Size>
where Size: SizeDesc,

§

impl<Coord, Size> PointElement<Coord, Size> for Cross<Coord, Size>
where Size: SizeDesc,

§

impl<Coord, Size> PointElement<Coord, Size> for Pixel<Coord>
where Size: SizeDesc,

§

impl<Coord, Size> PointElement<Coord, Size> for TriangleMarker<Coord, Size>
where Size: SizeDesc,