Trait IntoDynElement

Source
pub trait IntoDynElement<DB: DrawingBackend, Coord: Clone> {
    // Required method
    fn into_dyn(self) -> DynElement<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<DB, Coord>

Make the conversion

Implementors§

Source§

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