Trait friendly::scale::Prefix[][src]

pub trait Prefix: Debug + Clone + Copy + PartialEq {
    fn base(&self) -> i32;
fn exponent(&self) -> i32;
fn label(&self) -> &'static str; fn multiplier(&self) -> f64 { ... }
fn scale_value<T: Into<f64>>(&self, value: T) -> f64 { ... } }
Expand description

Trait for an individual prefix.

Required methods

Get the base for this prefix’s exponent.

Get the exponent for this prefix.

Get the label for this prefix.

Provided methods

Get the multiplier for this prefix as a floating-point number.

Rescale a value for this prefix.

Implementors