pub struct GoDuration(pub i64);
Tuple Fields§
§0: i64
nanoseconds
Implementations§
Trait Implementations§
Source§impl Clone for GoDuration
impl Clone for GoDuration
Source§fn clone(&self) -> GoDuration
fn clone(&self) -> GoDuration
Returns a duplicate of the value. Read more
1.0.0 · 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 GoDuration
impl Debug for GoDuration
Source§impl Default for GoDuration
impl Default for GoDuration
Source§fn default() -> GoDuration
fn default() -> GoDuration
Returns the “default value” for a type. Read more
Source§impl Display for GoDuration
impl Display for GoDuration
Source§impl From<i64> for GoDuration
impl From<i64> for GoDuration
Source§impl FromStr for GoDuration
impl FromStr for GoDuration
Source§impl Ord for GoDuration
impl Ord for GoDuration
Source§fn cmp(&self, other: &GoDuration) -> Ordering
fn cmp(&self, other: &GoDuration) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for GoDuration
impl PartialEq for GoDuration
Source§impl PartialOrd for GoDuration
impl PartialOrd for GoDuration
Source§impl TryFrom<&str> for GoDuration
impl TryFrom<&str> for GoDuration
impl Copy for GoDuration
impl Eq for GoDuration
impl StructuralPartialEq for GoDuration
Auto Trait Implementations§
impl Freeze for GoDuration
impl RefUnwindSafe for GoDuration
impl Send for GoDuration
impl Sync for GoDuration
impl Unpin for GoDuration
impl UnwindSafe for GoDuration
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