[][src]Struct plotters::prelude::RangedCoord

pub struct RangedCoord<X: Ranged, Y: Ranged> { /* fields omitted */ }

The coordinate described by two ranged value

Methods

impl<X: Ranged, Y: Ranged> RangedCoord<X, Y>[src]

pub fn new<IntoX: Into<X>, IntoY: Into<Y>>(
    logic_x: IntoX,
    logic_y: IntoY,
    actual: (Range<i32>, Range<i32>)
) -> Self
[src]

Create a new ranged value coordinate system

pub fn draw_mesh<E, DrawMesh: FnMut(MeshLine<X, Y>) -> Result<(), E>>(
    &self,
    h_limit: usize,
    v_limit: usize,
    draw_mesh: DrawMesh
) -> Result<(), E>
[src]

Draw the mesh for the coordinate system

pub fn get_x_range(&self) -> Range<X::ValueType>[src]

Get the range of X axis

pub fn get_y_range(&self) -> Range<Y::ValueType>[src]

Get the range of Y axis

Trait Implementations

impl<X: Ranged, Y: Ranged> CoordTranslate for RangedCoord<X, Y>[src]

type From = (X::ValueType, Y::ValueType)

impl<X: ReversableRanged, Y: ReversableRanged> ReverseCoordTranslate for RangedCoord<X, Y>[src]

Auto Trait Implementations

impl<X, Y> Send for RangedCoord<X, Y> where
    X: Send,
    Y: Send

impl<X, Y> Sync for RangedCoord<X, Y> where
    X: Sync,
    Y: Sync

Blanket Implementations

impl<T> From for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.