Struct plotters::element::BackendCoordOnly[][src]

pub struct BackendCoordOnly;

Trait Implementations

impl CoordMapper for BackendCoordOnly[src]

type Output = BackendCoord

fn map<CT: CoordTranslate>(
    coord_trans: &CT,
    from: &CT::From,
    rect: &Rect
) -> BackendCoord
[src]

impl<Coord, DB: DrawingBackend> Drawable<DB, BackendCoordOnly> for Pixel<Coord>[src]

fn draw<I: Iterator<Item = BackendCoord>>(
    &self,
    points: I,
    backend: &mut DB,
    _: (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<Coord, DB: DrawingBackend> Drawable<DB, BackendCoordOnly> for PathElement<Coord>[src]

fn draw<I: Iterator<Item = BackendCoord>>(
    &self,
    points: I,
    backend: &mut DB,
    _: (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<Coord, DB: DrawingBackend, A, B> Drawable<DB, BackendCoordOnly> for ComposedElement<Coord, DB, A, B> where
    &'a A: PointCollection<'a, BackendCoord>,
    &'b B: PointCollection<'b, BackendCoord>,
    A: Drawable<DB>,
    B: Drawable<DB>, 
[src]

fn draw<I: Iterator<Item = BackendCoord>>(
    &self,
    pos: I,
    backend: &mut DB,
    ps: (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<X, Y: PartialOrd, DB: DrawingBackend> Drawable<DB, BackendCoordOnly> for CandleStick<X, Y>[src]

fn draw<I: Iterator<Item = BackendCoord>>(
    &self,
    points: I,
    backend: &mut DB,
    _: (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<K, V, O: ErrorBarOrient<K, V>, DB: DrawingBackend> Drawable<DB, BackendCoordOnly> for ErrorBar<K, V, O>[src]

fn draw<I: Iterator<Item = BackendCoord>>(
    &self,
    points: I,
    backend: &mut DB,
    _: (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<K, DB: DrawingBackend, O: BoxplotOrient<K, f32>> Drawable<DB, BackendCoordOnly> for Boxplot<K, O>[src]

fn draw<I: Iterator<Item = BackendCoord>>(
    &self,
    points: I,
    backend: &mut DB,
    _: (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, Coord, DB: DrawingBackend> Drawable<DB, BackendCoordOnly> for BitMapElement<'a, Coord>[src]

fn draw<I: Iterator<Item = BackendCoord>>(
    &self,
    points: I,
    backend: &mut DB,
    _: (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, 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<Coord, DB: DrawingBackend> Drawable<DB, BackendCoordOnly> for Rectangle<Coord>[src]

fn draw<I: Iterator<Item = BackendCoord>>(
    &self,
    points: I,
    backend: &mut DB,
    _: (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<Coord, DB: DrawingBackend, Size: SizeDesc> Drawable<DB, BackendCoordOnly> for Circle<Coord, Size>[src]

fn draw<I: Iterator<Item = BackendCoord>>(
    &self,
    points: I,
    backend: &mut DB,
    ps: (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<Coord, DB: DrawingBackend> Drawable<DB, BackendCoordOnly> for Polygon<Coord>[src]

fn draw<I: Iterator<Item = BackendCoord>>(
    &self,
    points: I,
    backend: &mut DB,
    _: (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, Coord: 'a, DB: DrawingBackend, T: Borrow<str>> Drawable<DB, BackendCoordOnly> for Text<'a, Coord, T>[src]

fn draw<I: Iterator<Item = BackendCoord>>(
    &self,
    points: I,
    backend: &mut DB,
    _: (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, Coord: 'a, DB: DrawingBackend, T: Borrow<str>> Drawable<DB, BackendCoordOnly> for MultiLineText<'a, Coord, T>[src]

fn draw<I: Iterator<Item = BackendCoord>>(
    &self,
    points: I,
    backend: &mut DB,
    _: (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<Coord, DB: DrawingBackend, Size: SizeDesc> Drawable<DB, BackendCoordOnly> for Cross<Coord, Size>[src]

fn draw<I: Iterator<Item = BackendCoord>>(
    &self,
    points: I,
    backend: &mut DB,
    ps: (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<Coord, DB: DrawingBackend, Size: SizeDesc> Drawable<DB, BackendCoordOnly> for TriangleMarker<Coord, Size>[src]

fn draw<I: Iterator<Item = BackendCoord>>(
    &self,
    points: I,
    backend: &mut DB,
    ps: (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<Coord, DB: DrawingBackend> Drawable<DB, BackendCoordOnly> for EmptyElement<Coord, DB>[src]

fn draw<I: Iterator<Item = BackendCoord>>(
    &self,
    _pos: I,
    _backend: &mut DB,
    _: (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, K: Clone, O: BoxplotOrient<K, f32>> PointCollection<'a, (<O as BoxplotOrient<K, f32>>::XType, <O as BoxplotOrient<K, f32>>::YType), BackendCoordOnly> for &'a Boxplot<K, O>[src]

type Point = (O::XType, O::YType)

The item in point iterator

type IntoIter = Vec<Self::Point>

The point iterator

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

framework to do the coordinate mapping

impl<'a, K: Clone, V: Clone, O: ErrorBarOrient<K, V>> PointCollection<'a, (<O as ErrorBarOrient<K, V>>::XType, <O as ErrorBarOrient<K, V>>::YType), BackendCoordOnly> for &'a ErrorBar<K, V, O>[src]

type Point = (O::XType, O::YType)

The item in point iterator

type IntoIter = Vec<Self::Point>

The point iterator

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

framework to do the coordinate mapping

impl<'a, X: 'a, Y: PartialOrd + 'a> PointCollection<'a, (X, Y), BackendCoordOnly> for &'a CandleStick<X, Y>[src]

type Point = &'a (X, Y)

The item in point iterator

type IntoIter = &'a [(X, Y)]

The point iterator

fn point_iter(self) -> &'a [(X, Y)][src]

framework to do the coordinate mapping

impl<'a, Coord> PointCollection<'a, Coord, BackendCoordOnly> for &'a Pixel<Coord>[src]

type Point = &'a Coord

The item in point iterator

type IntoIter = Once<&'a Coord>

The point iterator

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

framework to do the coordinate mapping

impl<'a, Coord> PointCollection<'a, Coord, BackendCoordOnly> for &'a PathElement<Coord>[src]

type Point = &'a Coord

The item in point iterator

type IntoIter = &'a [Coord]

The point iterator

fn point_iter(self) -> &'a [Coord][src]

framework to do the coordinate mapping

impl<'a, 'b, Coord> PointCollection<'a, Coord, BackendCoordOnly> for &'a BitMapElement<'b, Coord>[src]

type Point = &'a Coord

The item in point iterator

type IntoIter = Once<&'a Coord>

The point iterator

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

framework to do the coordinate mapping

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

impl<'a, Coord> PointCollection<'a, Coord, BackendCoordOnly> for &'a Rectangle<Coord>[src]

type Point = &'a Coord

The item in point iterator

type IntoIter = &'a [Coord]

The point iterator

fn point_iter(self) -> &'a [Coord][src]

framework to do the coordinate mapping

impl<'a, Coord, Size: SizeDesc> PointCollection<'a, Coord, BackendCoordOnly> for &'a Circle<Coord, Size>[src]

type Point = &'a Coord

The item in point iterator

type IntoIter = Once<&'a Coord>

The point iterator

fn point_iter(self) -> Once<&'a Coord>[src]

framework to do the coordinate mapping

impl<'a, Coord> PointCollection<'a, Coord, BackendCoordOnly> for &'a Polygon<Coord>[src]

type Point = &'a Coord

The item in point iterator

type IntoIter = &'a [Coord]

The point iterator

fn point_iter(self) -> &'a [Coord][src]

framework to do the coordinate mapping

impl<'b, 'a, Coord: 'a, T: Borrow<str> + 'a> PointCollection<'a, Coord, BackendCoordOnly> for &'a Text<'b, Coord, T>[src]

type Point = &'a Coord

The item in point iterator

type IntoIter = Once<&'a Coord>

The point iterator

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

framework to do the coordinate mapping

impl<'b, 'a, Coord: 'a, T: Borrow<str> + 'a> PointCollection<'a, Coord, BackendCoordOnly> for &'a MultiLineText<'b, Coord, T>[src]

type Point = &'a Coord

The item in point iterator

type IntoIter = Once<&'a Coord>

The point iterator

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

framework to do the coordinate mapping

impl<'a, Coord: 'a, Size: SizeDesc> PointCollection<'a, Coord, BackendCoordOnly> for &'a Cross<Coord, Size>[src]

type Point = &'a Coord

The item in point iterator

type IntoIter = Once<&'a Coord>

The point iterator

fn point_iter(self) -> Once<&'a Coord>[src]

framework to do the coordinate mapping

impl<'a, Coord: 'a, Size: SizeDesc> PointCollection<'a, Coord, BackendCoordOnly> for &'a TriangleMarker<Coord, Size>[src]

type Point = &'a Coord

The item in point iterator

type IntoIter = Once<&'a Coord>

The point iterator

fn point_iter(self) -> Once<&'a Coord>[src]

framework to do the coordinate mapping

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

type Point = &'a Coord

The item in point iterator

type IntoIter = Once<&'a Coord>

The point iterator

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

framework to do the coordinate mapping

impl<'b, Coord, DB: DrawingBackend, A, B> PointCollection<'b, Coord, BackendCoordOnly> for &'b ComposedElement<Coord, DB, A, B> where
    A: Drawable<DB>,
    B: Drawable<DB>, 
[src]

type Point = &'b Coord

The item in point iterator

type IntoIter = Once<&'b Coord>

The point iterator

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

framework to do the coordinate mapping

Auto Trait Implementations

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.