pub struct BackendCoordOnly;
Expand description

Used for 2d coordinate transformations.

Trait Implementations§

source§

impl CoordMapper for BackendCoordOnly

§

type Output = (i32, i32)

Specifies the output data from the translation
source§

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

Performs the translation from guest coordinates to backend coordinates
source§

impl<'a, Coord, DB: DrawingBackend> Drawable<DB, BackendCoordOnly> for BitMapElement<'a, Coord>

source§

fn draw<I: Iterator<Item = BackendCoord>>( &self, points: I, backend: &mut DB, _: (u32, u32) ) -> Result<(), DrawingErrorKind<DB::ErrorType>>

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

impl<K, DB: DrawingBackend, O: BoxplotOrient<K, f32>> Drawable<DB, BackendCoordOnly> for Boxplot<K, O>

source§

fn draw<I: Iterator<Item = BackendCoord>>( &self, points: I, backend: &mut DB, _: (u32, u32) ) -> Result<(), DrawingErrorKind<DB::ErrorType>>

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

impl<X, Y: PartialOrd, DB: DrawingBackend> Drawable<DB, BackendCoordOnly> for CandleStick<X, Y>

source§

fn draw<I: Iterator<Item = BackendCoord>>( &self, points: I, backend: &mut DB, _: (u32, u32) ) -> Result<(), DrawingErrorKind<DB::ErrorType>>

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

impl<Coord, DB: DrawingBackend, Size: SizeDesc> Drawable<DB, BackendCoordOnly> for Circle<Coord, Size>

source§

fn draw<I: Iterator<Item = BackendCoord>>( &self, points: I, backend: &mut DB, ps: (u32, u32) ) -> Result<(), DrawingErrorKind<DB::ErrorType>>

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

impl<Coord, DB: DrawingBackend, A, B> Drawable<DB, BackendCoordOnly> for ComposedElement<Coord, DB, A, B>where for<'a> &'a A: PointCollection<'a, BackendCoord>, for<'b> &'b B: PointCollection<'b, BackendCoord>, A: Drawable<DB>, B: Drawable<DB>,

source§

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

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

impl<Coord, DB: DrawingBackend, Size: SizeDesc> Drawable<DB, BackendCoordOnly> for Cross<Coord, Size>

source§

fn draw<I: Iterator<Item = BackendCoord>>( &self, points: I, backend: &mut DB, ps: (u32, u32) ) -> Result<(), DrawingErrorKind<DB::ErrorType>>

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

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

source§

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

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

impl<Coord, DB: DrawingBackend> Drawable<DB, BackendCoordOnly> for EmptyElement<Coord, DB>

source§

fn draw<I: Iterator<Item = BackendCoord>>( &self, _pos: I, _backend: &mut DB, _: (u32, u32) ) -> Result<(), DrawingErrorKind<DB::ErrorType>>

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

impl<K, V, O: ErrorBarOrient<K, V>, DB: DrawingBackend> Drawable<DB, BackendCoordOnly> for ErrorBar<K, V, O>

source§

fn draw<I: Iterator<Item = BackendCoord>>( &self, points: I, backend: &mut DB, _: (u32, u32) ) -> Result<(), DrawingErrorKind<DB::ErrorType>>

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

impl<'a, Coord: 'a, DB: DrawingBackend, T: Borrow<str>> Drawable<DB, BackendCoordOnly> for MultiLineText<'a, Coord, T>

source§

fn draw<I: Iterator<Item = BackendCoord>>( &self, points: I, backend: &mut DB, _: (u32, u32) ) -> Result<(), DrawingErrorKind<DB::ErrorType>>

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

impl<Coord, DB: DrawingBackend> Drawable<DB, BackendCoordOnly> for PathElement<Coord>

source§

fn draw<I: Iterator<Item = BackendCoord>>( &self, points: I, backend: &mut DB, _: (u32, u32) ) -> Result<(), DrawingErrorKind<DB::ErrorType>>

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

impl<'a, DB: DrawingBackend, Label: Display> Drawable<DB, BackendCoordOnly> for Pie<'a, (i32, i32), Label>

source§

fn draw<I: Iterator<Item = BackendCoord>>( &self, _pos: I, backend: &mut DB, _parent_dim: (u32, u32) ) -> Result<(), DrawingErrorKind<DB::ErrorType>>

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

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

source§

fn draw<I: Iterator<Item = BackendCoord>>( &self, points: I, backend: &mut DB, _: (u32, u32) ) -> Result<(), DrawingErrorKind<DB::ErrorType>>

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

impl<Coord, DB: DrawingBackend> Drawable<DB, BackendCoordOnly> for Polygon<Coord>

source§

fn draw<I: Iterator<Item = BackendCoord>>( &self, points: I, backend: &mut DB, _: (u32, u32) ) -> Result<(), DrawingErrorKind<DB::ErrorType>>

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

impl<Coord, DB: DrawingBackend> Drawable<DB, BackendCoordOnly> for Rectangle<Coord>

source§

fn draw<I: Iterator<Item = BackendCoord>>( &self, points: I, backend: &mut DB, _: (u32, u32) ) -> Result<(), DrawingErrorKind<DB::ErrorType>>

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

impl<'a, Coord: 'a, DB: DrawingBackend, T: Borrow<str>> Drawable<DB, BackendCoordOnly> for Text<'a, Coord, T>

source§

fn draw<I: Iterator<Item = BackendCoord>>( &self, points: I, backend: &mut DB, _: (u32, u32) ) -> Result<(), DrawingErrorKind<DB::ErrorType>>

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

impl<Coord, DB: DrawingBackend, Size: SizeDesc> Drawable<DB, BackendCoordOnly> for TriangleMarker<Coord, Size>

source§

fn draw<I: Iterator<Item = BackendCoord>>( &self, points: I, backend: &mut DB, ps: (u32, u32) ) -> Result<(), DrawingErrorKind<DB::ErrorType>>

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

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>

§

type Point = (<O as BoxplotOrient<K, f32>>::XType, <O as BoxplotOrient<K, f32>>::YType)

The item in point iterator
§

type IntoIter = Vec<<&'a Boxplot<K, O> as PointCollection<'a, (<O as BoxplotOrient<K, f32>>::XType, <O as BoxplotOrient<K, f32>>::YType), BackendCoordOnly>>::Point, Global>

The point iterator
source§

fn point_iter(self) -> Self::IntoIter

framework to do the coordinate mapping
source§

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>

§

type Point = (<O as ErrorBarOrient<K, V>>::XType, <O as ErrorBarOrient<K, V>>::YType)

The item in point iterator
§

type IntoIter = Vec<<&'a ErrorBar<K, V, O> as PointCollection<'a, (<O as ErrorBarOrient<K, V>>::XType, <O as ErrorBarOrient<K, V>>::YType), BackendCoordOnly>>::Point, Global>

The point iterator
source§

fn point_iter(self) -> Self::IntoIter

framework to do the coordinate mapping
source§

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

§

type Point = &'a (X, Y)

The item in point iterator
§

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

The point iterator
source§

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

framework to do the coordinate mapping
source§

impl<'a, Label: Display> PointCollection<'a, (i32, i32), BackendCoordOnly> for &'a Pie<'a, (i32, i32), Label>

§

type Point = &'a (i32, i32)

The item in point iterator
§

type IntoIter = Once<&'a (i32, i32)>

The point iterator
source§

fn point_iter(self) -> Once<&'a (i32, i32)>

framework to do the coordinate mapping
source§

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

§

type Point = &'a Coord

The item in point iterator
§

type IntoIter = Once<&'a Coord>

The point iterator
source§

fn point_iter(self) -> Self::IntoIter

framework to do the coordinate mapping
source§

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

§

type Point = &'a Coord

The item in point iterator
§

type IntoIter = Once<&'a Coord>

The point iterator
source§

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

framework to do the coordinate mapping
source§

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

§

type Point = &'a Coord

The item in point iterator
§

type IntoIter = Once<&'a Coord>

The point iterator
source§

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

framework to do the coordinate mapping
source§

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

§

type Point = &'a Coord

The item in point iterator
§

type IntoIter = &'a Vec<Coord, Global>

The point iterator
source§

fn point_iter(self) -> Self::IntoIter

framework to do the coordinate mapping
source§

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

§

type Point = &'a Coord

The item in point iterator
§

type IntoIter = Once<&'a Coord>

The point iterator
source§

fn point_iter(self) -> Self::IntoIter

framework to do the coordinate mapping
source§

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

§

type Point = &'a Coord

The item in point iterator
§

type IntoIter = Once<&'a Coord>

The point iterator
source§

fn point_iter(self) -> Self::IntoIter

framework to do the coordinate mapping
source§

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

§

type Point = &'a Coord

The item in point iterator
§

type IntoIter = &'a [Coord]

The point iterator
source§

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

framework to do the coordinate mapping
source§

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

§

type Point = &'a Coord

The item in point iterator
§

type IntoIter = Once<&'a Coord>

The point iterator
source§

fn point_iter(self) -> Self::IntoIter

framework to do the coordinate mapping
source§

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

§

type Point = &'a Coord

The item in point iterator
§

type IntoIter = &'a [Coord]

The point iterator
source§

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

framework to do the coordinate mapping
source§

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

§

type Point = &'a Coord

The item in point iterator
§

type IntoIter = &'a [Coord]

The point iterator
source§

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

framework to do the coordinate mapping
source§

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

§

type Point = &'a Coord

The item in point iterator
§

type IntoIter = Once<&'a Coord>

The point iterator
source§

fn point_iter(self) -> Self::IntoIter

framework to do the coordinate mapping
source§

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

§

type Point = &'a Coord

The item in point iterator
§

type IntoIter = Once<&'a Coord>

The point iterator
source§

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

framework to do the coordinate mapping
source§

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>,

§

type Point = &'b Coord

The item in point iterator
§

type IntoIter = Once<&'b Coord>

The point iterator
source§

fn point_iter(self) -> Self::IntoIter

framework to do the coordinate mapping

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

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

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

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

Performs the conversion.