[][src]Struct plotters::coord::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

pub fn get_x_axis_pixel_range(&self) -> Range<i32>[src]

pub fn get_y_axis_pixel_range(&self) -> Range<i32>[src]

pub fn x_spec(&self) -> &X[src]

pub fn y_spec(&self) -> &Y[src]

Trait Implementations

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

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

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

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

Auto Trait Implementations

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

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

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

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

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

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

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

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.

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.

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

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

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

impl<T> SetParameter for T

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    D: AdaptFrom<S, Swp, Dwp, T>,
    Dwp: WhitePoint,
    Swp: WhitePoint,
    T: Component + Float
[src]

impl<T, U> ConvertInto<U> for T where
    U: ConvertFrom<T>, 
[src]