[][src]Struct libmedium::units::Voltage

pub struct Voltage(_);

Struct that represents an electrical voltage.

Implementations

impl Voltage[src]

pub fn from_milli_volts(millis: i32) -> Voltage[src]

Create a Voltage struct from a value measuring millivolts.

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

Return this Voltage's value in millivolts.

pub fn from_volts(volts: impl Into<f64>) -> Voltage[src]

Create a Voltage struct from a value measuring volts.

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

Return this Voltage's value in volts.

Trait Implementations

impl Add<Voltage> for Voltage[src]

type Output = Self

The resulting type after applying the + operator.

impl<S: VoltSensor> Average<Voltage> for S[src]

impl Clone for Voltage[src]

impl Copy for Voltage[src]

impl<S: VoltSensor> Crit<Voltage> for S[src]

impl Debug for Voltage[src]

impl Display for Voltage[src]

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

type Output = Self

The resulting type after applying the / operator.

impl Eq for Voltage[src]

impl Hash for Voltage[src]

impl<S: VoltSensor> Highest<Voltage> for S[src]

impl<S: VoltSensor> LowCrit<Voltage> for S[src]

impl<S: VoltSensor> Lowest<Voltage> for S[src]

impl<S: VoltSensor> Max<Voltage> for S[src]

impl<S: VoltSensor> Min<Voltage> for S[src]

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

type Output = Self

The resulting type after applying the * operator.

impl Ord for Voltage[src]

impl PartialEq<Voltage> for Voltage[src]

impl PartialOrd<Voltage> for Voltage[src]

impl Raw for Voltage[src]

impl<S: VoltSensor> Sensor<Voltage> for S[src]

impl StructuralEq for Voltage[src]

impl StructuralPartialEq for Voltage[src]

Auto Trait Implementations

impl RefUnwindSafe for Voltage

impl Send for Voltage

impl Sync for Voltage

impl Unpin for Voltage

impl UnwindSafe for Voltage

Blanket Implementations

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

impl<S> Average<Voltage> for S where
    S: VoltSensor
[src]

impl<S> Average<Voltage> for S where
    S: VoltSensor
[src]

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

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

impl<S> Crit<Voltage> for S where
    S: VoltSensor
[src]

impl<S> Crit<Voltage> for S where
    S: VoltSensor
[src]

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

impl<S> Highest<Voltage> for S where
    S: VoltSensor
[src]

impl<S> Highest<Voltage> for S where
    S: VoltSensor
[src]

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

impl<S> LowCrit<Voltage> for S where
    S: VoltSensor
[src]

impl<S> LowCrit<Voltage> for S where
    S: VoltSensor
[src]

impl<S> Lowest<Voltage> for S where
    S: VoltSensor
[src]

impl<S> Lowest<Voltage> for S where
    S: VoltSensor
[src]

impl<S> Max<Voltage> for S where
    S: VoltSensor
[src]

impl<S> Max<Voltage> for S where
    S: VoltSensor
[src]

impl<S> Min<Voltage> for S where
    S: VoltSensor
[src]

impl<S> Min<Voltage> for S where
    S: VoltSensor
[src]

impl<S> Sensor<Voltage> for S where
    S: VoltSensor
[src]

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