pub struct DurationMillis(pub i64);Tuple Fields§
§0: i64Implementations§
Source§impl DurationMillis
impl DurationMillis
pub fn zero() -> Self
pub fn encode_be(self) -> DurationMillisBytes
pub const fn const_add(self, rhs: DurationMillis) -> DurationMillis
pub const fn const_mul(&self, rhs: i64) -> DurationMillis
pub const fn abs(self) -> DurationMillis
Trait Implementations§
Source§impl Add<DurationMillis> for TimeMillis
impl Add<DurationMillis> for TimeMillis
Source§type Output = TimeMillis
type Output = TimeMillis
The resulting type after applying the
+ operator.Source§impl Add for DurationMillis
impl Add for DurationMillis
Source§type Output = DurationMillis
type Output = DurationMillis
The resulting type after applying the
+ operator.Source§fn add(self, rhs: DurationMillis) -> DurationMillis
fn add(self, rhs: DurationMillis) -> DurationMillis
Performs the
+ operation. Read moreSource§impl Clone for DurationMillis
impl Clone for DurationMillis
Source§fn clone(&self) -> DurationMillis
fn clone(&self) -> DurationMillis
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 DurationMillis
impl Debug for DurationMillis
Source§impl<'de> Deserialize<'de> for DurationMillis
impl<'de> Deserialize<'de> for DurationMillis
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 Display for DurationMillis
impl Display for DurationMillis
Source§impl<__RhsT> Div<__RhsT> for DurationMillis
impl<__RhsT> Div<__RhsT> for DurationMillis
Source§type Output = DurationMillis
type Output = DurationMillis
The resulting type after applying the
/ operator.Source§fn div(self, rhs: __RhsT) -> DurationMillis
fn div(self, rhs: __RhsT) -> DurationMillis
Performs the
/ operation. Read moreSource§impl From<DurationMillis> for Duration
impl From<DurationMillis> for Duration
Source§fn from(value: DurationMillis) -> Self
fn from(value: DurationMillis) -> Self
Converts to this type from the input type.
Source§impl Hash for DurationMillis
impl Hash for DurationMillis
Source§impl<__RhsT> Mul<__RhsT> for DurationMillis
impl<__RhsT> Mul<__RhsT> for DurationMillis
Source§type Output = DurationMillis
type Output = DurationMillis
The resulting type after applying the
* operator.Source§fn mul(self, rhs: __RhsT) -> DurationMillis
fn mul(self, rhs: __RhsT) -> DurationMillis
Performs the
* operation. Read moreSource§impl Neg for DurationMillis
impl Neg for DurationMillis
Source§type Output = DurationMillis
type Output = DurationMillis
The resulting type after applying the
- operator.Source§fn neg(self) -> DurationMillis
fn neg(self) -> DurationMillis
Performs the unary
- operation. Read moreSource§impl Ord for DurationMillis
impl Ord for DurationMillis
Source§fn cmp(&self, other: &DurationMillis) -> Ordering
fn cmp(&self, other: &DurationMillis) -> 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 DurationMillis
impl PartialEq for DurationMillis
Source§impl PartialOrd for DurationMillis
impl PartialOrd for DurationMillis
Source§impl Serialize for DurationMillis
impl Serialize for DurationMillis
Source§impl Sub<DurationMillis> for TimeMillis
impl Sub<DurationMillis> for TimeMillis
Source§type Output = TimeMillis
type Output = TimeMillis
The resulting type after applying the
- operator.Source§impl Sub for DurationMillis
impl Sub for DurationMillis
Source§type Output = DurationMillis
type Output = DurationMillis
The resulting type after applying the
- operator.Source§fn sub(self, rhs: DurationMillis) -> DurationMillis
fn sub(self, rhs: DurationMillis) -> DurationMillis
Performs the
- operation. Read moreSource§impl SubAssign<DurationMillis> for TimeMillis
impl SubAssign<DurationMillis> for TimeMillis
Source§fn sub_assign(&mut self, rhs: DurationMillis)
fn sub_assign(&mut self, rhs: DurationMillis)
Performs the
-= operation. Read moreimpl Copy for DurationMillis
impl Eq for DurationMillis
impl StructuralPartialEq for DurationMillis
Auto Trait Implementations§
impl Freeze for DurationMillis
impl RefUnwindSafe for DurationMillis
impl Send for DurationMillis
impl Sync for DurationMillis
impl Unpin for DurationMillis
impl UnsafeUnpin for DurationMillis
impl UnwindSafe for DurationMillis
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.