[][src]Struct shtcx::Humidity

pub struct Humidity(_);

A humidity measurement.

Implementations

impl Humidity[src]

pub fn as_millipercent(&self) -> i32[src]

Return relative humidity in 1/1000 %RH.

pub fn as_percent(&self) -> f32[src]

Return relative humidity in %RH.

Trait Implementations

impl Clone for Humidity[src]

impl Debug for Humidity[src]

impl Eq for Humidity[src]

impl PartialEq<Humidity> for Humidity[src]

impl StructuralEq for Humidity[src]

impl StructuralPartialEq for Humidity[src]

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, 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.