pub struct TimeSpan(pub i64);Expand description
A value representing an interval of time, in microseconds.
Tuple Fields
0: i64Implementations
Create a new timespan from microseconds.
Create a new timespan from milliseconds.
Create a new timespan from seconds.
Create a new timespan from minutes.
Create a new timespan from hours.
Return the full number of microseconds in this TimeSpan.
Return the full number of milliseconds in this TimeSpan.
Return the full number of seconds in this TimeSpan.
Return the full number of minutes in this TimeSpan.
Trait Implementations
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for TimeSpan
impl UnwindSafe for TimeSpan
Blanket Implementations
Mutably borrows from an owned value. Read more