[][src]Struct val_unc::val_unc::ValUnc

pub struct ValUnc<V, U> {
    pub val: V,
    pub unc: U,
}

A type with a value and uncertainties.

Fields

val: Vunc: U

Methods

impl<V, U> ValUnc<V, U>[src]

pub fn new(val: V, unc: U) -> Self[src]

Trait Implementations

impl<V, U> Add<ValUnc<V, U>> for ValUnc<V, U> where
    V: Add<V, Output = V> + Copy,
    U: UncAdd<V>, 
[src]

type Output = Self

The resulting type after applying the + operator.

impl<V: Clone, U: Clone> Clone for ValUnc<V, U>[src]

impl<V: Copy, U: Copy> Copy for ValUnc<V, U>[src]

impl<V: Debug, U: Debug> Debug for ValUnc<V, U>[src]

impl<V: Default, U: Default> Default for ValUnc<V, U>[src]

impl<V, U> Div<ValUnc<V, U>> for ValUnc<V, U> where
    V: Div<V, Output = V> + Copy,
    U: UncDiv<V>, 
[src]

type Output = Self

The resulting type after applying the / operator.

impl<V: Eq, U: Eq> Eq for ValUnc<V, U>[src]

impl<V, U> From<V> for ValUnc<V, U> where
    U: Default
[src]

impl<V: Hash, U: Hash> Hash for ValUnc<V, U>[src]

impl<V, U> Mul<ValUnc<V, U>> for ValUnc<V, U> where
    V: Mul<V, Output = V> + Copy,
    U: UncMul<V>, 
[src]

type Output = Self

The resulting type after applying the * operator.

impl<V, U> Neg for ValUnc<V, U> where
    V: Neg<Output = V> + Copy,
    U: UncNeg<V>, 
[src]

type Output = Self

The resulting type after applying the - operator.

impl<V: Ord, U: Ord> Ord for ValUnc<V, U>[src]

impl<V: PartialEq, U: PartialEq> PartialEq<ValUnc<V, U>> for ValUnc<V, U>[src]

impl<V: PartialOrd, U: PartialOrd> PartialOrd<ValUnc<V, U>> for ValUnc<V, U>[src]

impl<V, U> StructuralEq for ValUnc<V, U>[src]

impl<V, U> StructuralPartialEq for ValUnc<V, U>[src]

impl<V, U> Sub<ValUnc<V, U>> for ValUnc<V, U> where
    V: Sub<V, Output = V> + Copy,
    U: UncSub<V>, 
[src]

type Output = Self

The resulting type after applying the - operator.

Auto Trait Implementations

impl<V, U> RefUnwindSafe for ValUnc<V, U> where
    U: RefUnwindSafe,
    V: RefUnwindSafe

impl<V, U> Send for ValUnc<V, U> where
    U: Send,
    V: Send

impl<V, U> Sync for ValUnc<V, U> where
    U: Sync,
    V: Sync

impl<V, U> Unpin for ValUnc<V, U> where
    U: Unpin,
    V: Unpin

impl<V, U> UnwindSafe for ValUnc<V, U> where
    U: UnwindSafe,
    V: UnwindSafe

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<!> for T[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, 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.