Trait plotters::prelude::AsRelative[][src]

pub trait AsRelative: Into<f64> {
    fn percent_width(self) -> RelativeSize { ... }
fn percent_height(self) -> RelativeSize { ... }
fn percent(self) -> RelativeSize { ... } }
Expand description

Allows a value turns into a relative size

Provided methods

fn percent_width(self) -> RelativeSize[src]

Make the value a relative size of percentage of width

fn percent_height(self) -> RelativeSize[src]

Make the value a relative size of percentage of height

fn percent(self) -> RelativeSize[src]

Make the value a relative size of percentage of minimal of height and width

Implementors

impl<T: Into<f64>> AsRelative for T[src]