Struct plotters::element::DynElement[][src]

pub struct DynElement<'a, DB, Coord> where
    DB: DrawingBackend,
    Coord: Clone
{ /* fields omitted */ }
Expand description

The container for a dynamically dispatched element

Trait Implementations

impl<'a, DB: DrawingBackend, Coord: Clone> Drawable<DB, BackendCoordOnly> for DynElement<'a, DB, Coord>[src]

fn draw<I: Iterator<Item = BackendCoord>>(
    &self,
    pos: I,
    backend: &mut DB,
    parent_dim: (u32, u32)
) -> Result<(), DrawingErrorKind<DB::ErrorType>>
[src]

Actually draws the element. The key points is already translated into the image coordinate and can be used by DC directly Read more

impl<'a, 'b: 'a, DB: DrawingBackend, Coord: Clone> PointCollection<'a, Coord, BackendCoordOnly> for &'a DynElement<'b, DB, Coord>[src]

type Point = &'a Coord

The item in point iterator

type IntoIter = &'a Vec<Coord>

The point iterator

fn point_iter(self) -> Self::IntoIter[src]

framework to do the coordinate mapping

Auto Trait Implementations

impl<'a, DB, Coord> !RefUnwindSafe for DynElement<'a, DB, Coord>

impl<'a, DB, Coord> !Send for DynElement<'a, DB, Coord>

impl<'a, DB, Coord> !Sync for DynElement<'a, DB, Coord>

impl<'a, DB, Coord> Unpin for DynElement<'a, DB, Coord> where
    Coord: Unpin

impl<'a, DB, Coord> !UnwindSafe for DynElement<'a, DB, Coord>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.