pub struct Double(pub f64);Expand description
Tuple Fields§
§0: f64Trait Implementations§
Source§impl<'de> Deserialize<'de> for Double
impl<'de> Deserialize<'de> for Double
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 Double
Hashing string representation.
impl Hash for Double
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 for Double
Comparison string representations.
impl PartialEq for Double
Comparison string representations.
Such implementation is required, so that the results of comparing values and comparing hashes match.
impl Copy for Double
Auto Trait Implementations§
impl Freeze for Double
impl RefUnwindSafe for Double
impl Send for Double
impl Sync for Double
impl Unpin for Double
impl UnwindSafe for Double
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)