[][src]Struct libmedium::units::Current

pub struct Current(_);

Struct that represents an electrical current.

Implementations

impl Current[src]

pub fn from_milli_amperes(millis: i32) -> Current[src]

Create a Current struct from a value measuring milliamperes.

pub fn as_milli_amperes(self) -> i32[src]

Return this Current's value in milliamperes.

pub fn from_amperes(joules: impl Into<f64>) -> Current[src]

Create a Current struct from a value measuring amperes.

pub fn as_amperes(self) -> f64[src]

Return this Current's value in amperes.

Trait Implementations

impl Add<Current> for Current[src]

type Output = Self

The resulting type after applying the + operator.

impl<S: CurrSensor> Average<Current> for S[src]

impl Clone for Current[src]

impl Copy for Current[src]

impl<S: CurrSensor> Crit<Current> for S[src]

impl Debug for Current[src]

impl Display for Current[src]

impl<T: Into<i32>> Div<T> for Current[src]

type Output = Self

The resulting type after applying the / operator.

impl Eq for Current[src]

impl Hash for Current[src]

impl<S: CurrSensor> Highest<Current> for S[src]

impl<S: CurrSensor> LowCrit<Current> for S[src]

impl<S: CurrSensor> Lowest<Current> for S[src]

impl<S: CurrSensor> Max<Current> for S[src]

impl<S: CurrSensor> Min<Current> for S[src]

impl<T: Into<i32>> Mul<T> for Current[src]

type Output = Self

The resulting type after applying the * operator.

impl Ord for Current[src]

impl PartialEq<Current> for Current[src]

impl PartialOrd<Current> for Current[src]

impl Raw for Current[src]

impl<S: CurrSensor> Sensor<Current> for S[src]

impl StructuralEq for Current[src]

impl StructuralPartialEq for Current[src]

Auto Trait Implementations

impl RefUnwindSafe for Current

impl Send for Current

impl Sync for Current

impl Unpin for Current

impl UnwindSafe for Current

Blanket Implementations

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

impl<S> Average<Current> for S where
    S: CurrSensor
[src]

impl<S> Average<Current> for S where
    S: CurrSensor
[src]

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

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

impl<S> Crit<Current> for S where
    S: CurrSensor
[src]

impl<S> Crit<Current> for S where
    S: CurrSensor
[src]

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

impl<S> Highest<Current> for S where
    S: CurrSensor
[src]

impl<S> Highest<Current> for S where
    S: CurrSensor
[src]

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

impl<S> LowCrit<Current> for S where
    S: CurrSensor
[src]

impl<S> LowCrit<Current> for S where
    S: CurrSensor
[src]

impl<S> Lowest<Current> for S where
    S: CurrSensor
[src]

impl<S> Lowest<Current> for S where
    S: CurrSensor
[src]

impl<S> Max<Current> for S where
    S: CurrSensor
[src]

impl<S> Max<Current> for S where
    S: CurrSensor
[src]

impl<S> Min<Current> for S where
    S: CurrSensor
[src]

impl<S> Min<Current> for S where
    S: CurrSensor
[src]

impl<S> Sensor<Current> for S where
    S: CurrSensor
[src]

impl<S> Sensor<Current> for S where
    S: CurrSensor
[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.