Struct medea_client_api_proto::stats::Float
source · pub struct Float(pub f64);
Tuple Fields§
§0: f64
Trait Implementations§
source§impl<'de> Deserialize<'de> for Float
impl<'de> Deserialize<'de> for Float
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for Float
impl Hash for Float
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.
source§impl PartialEq<Float> for Float
impl PartialEq<Float> for Float
Comparison string representations.
Such implementation is required, so that the results of comparing values and comparing hashes match.
impl Copy for Float
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more