Trait widgetry::widgets::plots::Axis[][src]

pub trait Axis<T>: 'static + Copy + Ord {
    fn from_percent(&self, percent: f64) -> T;
fn to_percent(self, max: T) -> f64;
fn prettyprint(self) -> String;
fn to_f64(self) -> f64;
fn from_f64(&self, x: f64) -> T;
fn zero() -> T; }

Required methods

fn from_percent(&self, percent: f64) -> T[src]

fn to_percent(self, max: T) -> f64[src]

fn prettyprint(self) -> String[src]

fn to_f64(self) -> f64[src]

fn from_f64(&self, x: f64) -> T[src]

fn zero() -> T[src]

Loading content...

Implementations on Foreign Types

impl Axis<usize> for usize[src]

impl Axis<Duration> for Duration[src]

impl Axis<Time> for Time[src]

impl Axis<Distance> for Distance[src]

Loading content...

Implementors

Loading content...