Struct medea_client_api_proto::stats::Float[][src]

pub struct Float(pub f64);

f64 wrapper with Hash implementation.

Trait Implementations

impl Clone for Float[src]

impl Copy for Float[src]

impl Debug for Float[src]

impl<'de> Deserialize<'de> for Float[src]

impl Hash for Float[src]

Hashing string representation.

Some people believe that such behavior is incorrect (but in some programming languages this is a default behavior) due to NaN, Inf or -Inf (they all will have the same hashes). But in the case of RtcStat received from the client, there should be no such situations, and the hash will always be correct.

impl PartialEq<Float> for Float[src]

Comparison string representations.

Such implementation is required, so that the results of comparing values and comparing hashes match.

impl Serialize for Float[src]

Auto Trait Implementations

impl RefUnwindSafe for Float

impl Send for Float

impl Sync for Float

impl Unpin for Float

impl UnwindSafe for Float

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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.