plotters::element

Trait IntoDynElement

Source
pub trait IntoDynElement<'a, DB: DrawingBackend, Coord: Clone>
where Self: 'a,
{ // Required method fn into_dyn(self) -> DynElement<'a, DB, Coord>; }
Expand description

The trait that makes the conversion from the statically dispatched element to the dynamically dispatched element

Required Methods§

Source

fn into_dyn(self) -> DynElement<'a, DB, Coord>

Make the conversion

Implementors§

Source§

impl<'b, T, DB, Coord> IntoDynElement<'b, DB, Coord> for T
where T: Drawable<DB> + 'b, for<'a> &'a T: PointCollection<'a, Coord>, Coord: Clone, DB: DrawingBackend,