pub struct NonzeroDuration(/* private fields */);Implementations§
Trait Implementations§
Source§impl Clone for NonzeroDuration
impl Clone for NonzeroDuration
Source§fn clone(&self) -> NonzeroDuration
fn clone(&self) -> NonzeroDuration
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 moreSource§impl Debug for NonzeroDuration
impl Debug for NonzeroDuration
Source§impl Default for NonzeroDuration
impl Default for NonzeroDuration
Source§impl From<Duration> for NonzeroDuration
impl From<Duration> for NonzeroDuration
Source§impl From<NonzeroDuration> for Duration
impl From<NonzeroDuration> for Duration
Source§fn from(duration: NonzeroDuration) -> Self
fn from(duration: NonzeroDuration) -> Self
Converts to this type from the input type.
Source§impl PartialEq for NonzeroDuration
impl PartialEq for NonzeroDuration
Source§fn eq(&self, other: &NonzeroDuration) -> bool
fn eq(&self, other: &NonzeroDuration) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for NonzeroDuration
impl Eq for NonzeroDuration
impl StructuralPartialEq for NonzeroDuration
Auto Trait Implementations§
impl Freeze for NonzeroDuration
impl RefUnwindSafe for NonzeroDuration
impl Send for NonzeroDuration
impl Sync for NonzeroDuration
impl Unpin for NonzeroDuration
impl UnsafeUnpin for NonzeroDuration
impl UnwindSafe for NonzeroDuration
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