[][src]Trait tui::widgets::canvas::Shape

pub trait Shape<'a> {
    fn color(&self) -> Color;
fn points(&'a self) -> Box<dyn Iterator<Item = (f64, f64)> + 'a>; }

Interface for all shapes that may be drawn on a Canvas widget.

Required methods

fn color(&self) -> Color

Returns the color of the shape

fn points(&'a self) -> Box<dyn Iterator<Item = (f64, f64)> + 'a>

Returns an iterator over all points of the shape

Loading content...

Implementors

impl<'a> Shape<'a> for Line[src]

impl<'a> Shape<'a> for Map[src]

impl<'a> Shape<'a> for Points<'a>[src]

impl<'a> Shape<'a> for Rectangle[src]

Loading content...