[][src]Struct scicalc_rs::measurement::Measurement

pub struct Measurement { /* fields omitted */ }

A Measurement 'x' is written as x = (mean +- sigma)

where 'mean' is the mean value

and 'sigma' is the uncertainty(also called error or standard deviation from the mean)

Implementations

impl Measurement[src]

pub fn new(mean: f64, sigma: f64) -> Measurement[src]

Trait Implementations

impl Add<Measurement> for Measurement[src]

type Output = Self

The resulting type after applying the + operator.

impl Add<f64> for Measurement[src]

type Output = Self

The resulting type after applying the + operator.

impl ApproxEq for Measurement[src]

type Margin = F64Margin

This type type defines a margin within which two values are to be considered approximately equal. It must implement Default so that approx_eq() can be called on unknown types. Read more

impl Clone for Measurement[src]

impl Copy for Measurement[src]

impl Debug for Measurement[src]

impl Display for Measurement[src]

impl Div<Measurement> for Measurement[src]

type Output = Self

The resulting type after applying the / operator.

impl Div<f64> for Measurement[src]

type Output = Self

The resulting type after applying the / operator.

impl Mul<Measurement> for Measurement[src]

type Output = Self

The resulting type after applying the * operator.

impl Mul<f64> for Measurement[src]

type Output = Self

The resulting type after applying the * operator.

impl Neg for Measurement[src]

type Output = Self

The resulting type after applying the - operator.

impl PartialEq<Measurement> for Measurement[src]

impl Sub<Measurement> for Measurement[src]

type Output = Self

The resulting type after applying the - operator.

impl Sub<f64> for Measurement[src]

type Output = Self

The resulting type after applying the - operator.

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.