pub struct DurationSeconds(pub f64);Expand description
Floating-point duration wrapper with equality based on its bit pattern.
Tuple Fields§
§0: f64Trait Implementations§
Source§impl Clone for DurationSeconds
impl Clone for DurationSeconds
Source§fn clone(&self) -> DurationSeconds
fn clone(&self) -> DurationSeconds
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DurationSeconds
Source§impl Debug for DurationSeconds
impl Debug for DurationSeconds
Source§impl<'de> Deserialize<'de> for DurationSeconds
impl<'de> Deserialize<'de> for DurationSeconds
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
impl Eq for DurationSeconds
Source§impl PartialEq for DurationSeconds
impl PartialEq for DurationSeconds
Auto Trait Implementations§
impl Freeze for DurationSeconds
impl RefUnwindSafe for DurationSeconds
impl Send for DurationSeconds
impl Sync for DurationSeconds
impl Unpin for DurationSeconds
impl UnsafeUnpin for DurationSeconds
impl UnwindSafe for DurationSeconds
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