[][src]Trait widgetry::widgets::line_plot::Yvalue

pub trait Yvalue<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 Yvalue<usize> for usize[src]

impl Yvalue<Duration> for Duration[src]

Loading content...

Implementors

Loading content...