Struct tor_units::IntegerSeconds
source · [−]pub struct IntegerSeconds<T> { /* private fields */ }
Expand description
This type represents an integer number of seconds.
The underlying type should implement TryInto
Implementations
Trait Implementations
sourceimpl<T: Add<Output = T>> Add<IntegerSeconds<T>> for IntegerSeconds<T>
impl<T: Add<Output = T>> Add<IntegerSeconds<T>> for IntegerSeconds<T>
type Output = IntegerSeconds<T>
type Output = IntegerSeconds<T>
The resulting type after applying the +
operator.
sourcefn add(self, rhs: IntegerSeconds<T>) -> IntegerSeconds<T>
fn add(self, rhs: IntegerSeconds<T>) -> IntegerSeconds<T>
Performs the +
operation. Read more
sourceimpl<T: Clone> Clone for IntegerSeconds<T>
impl<T: Clone> Clone for IntegerSeconds<T>
sourcefn clone(&self) -> IntegerSeconds<T>
fn clone(&self) -> IntegerSeconds<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<T: Debug> Debug for IntegerSeconds<T>
impl<T: Debug> Debug for IntegerSeconds<T>
sourceimpl<T> Display for IntegerSeconds<T> where
T: Display,
impl<T> Display for IntegerSeconds<T> where
T: Display,
sourceimpl<T, __RhsT> Div<__RhsT> for IntegerSeconds<T> where
T: Div<__RhsT, Output = T>,
impl<T, __RhsT> Div<__RhsT> for IntegerSeconds<T> where
T: Div<__RhsT, Output = T>,
type Output = IntegerSeconds<T>
type Output = IntegerSeconds<T>
The resulting type after applying the /
operator.
sourcefn div(self, rhs: __RhsT) -> IntegerSeconds<T>
fn div(self, rhs: __RhsT) -> IntegerSeconds<T>
Performs the /
operation. Read more
sourceimpl<T> From<T> for IntegerSeconds<T>
impl<T> From<T> for IntegerSeconds<T>
sourcefn from(original: T) -> IntegerSeconds<T>
fn from(original: T) -> IntegerSeconds<T>
Converts to this type from the input type.
sourceimpl<T: FromStr> FromStr for IntegerSeconds<T>
impl<T: FromStr> FromStr for IntegerSeconds<T>
sourceimpl<T, __RhsT> Mul<__RhsT> for IntegerSeconds<T> where
T: Mul<__RhsT, Output = T>,
impl<T, __RhsT> Mul<__RhsT> for IntegerSeconds<T> where
T: Mul<__RhsT, Output = T>,
type Output = IntegerSeconds<T>
type Output = IntegerSeconds<T>
The resulting type after applying the *
operator.
sourcefn mul(self, rhs: __RhsT) -> IntegerSeconds<T>
fn mul(self, rhs: __RhsT) -> IntegerSeconds<T>
Performs the *
operation. Read more
sourceimpl<T: Ord> Ord for IntegerSeconds<T>
impl<T: Ord> Ord for IntegerSeconds<T>
sourceimpl<T: PartialEq> PartialEq<IntegerSeconds<T>> for IntegerSeconds<T>
impl<T: PartialEq> PartialEq<IntegerSeconds<T>> for IntegerSeconds<T>
sourcefn eq(&self, other: &IntegerSeconds<T>) -> bool
fn eq(&self, other: &IntegerSeconds<T>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &IntegerSeconds<T>) -> bool
fn ne(&self, other: &IntegerSeconds<T>) -> bool
This method tests for !=
.
sourceimpl<T: PartialOrd> PartialOrd<IntegerSeconds<T>> for IntegerSeconds<T>
impl<T: PartialOrd> PartialOrd<IntegerSeconds<T>> for IntegerSeconds<T>
sourcefn partial_cmp(&self, other: &IntegerSeconds<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &IntegerSeconds<T>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl<const H: i32, const L: i32> TryFrom<i32> for IntegerSeconds<BoundedInt32<H, L>>
impl<const H: i32, const L: i32> TryFrom<i32> for IntegerSeconds<BoundedInt32<H, L>>
impl<T: Copy> Copy for IntegerSeconds<T>
impl<T: Eq> Eq for IntegerSeconds<T>
impl<T> StructuralEq for IntegerSeconds<T>
impl<T> StructuralPartialEq for IntegerSeconds<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for IntegerSeconds<T> where
T: RefUnwindSafe,
impl<T> Send for IntegerSeconds<T> where
T: Send,
impl<T> Sync for IntegerSeconds<T> where
T: Sync,
impl<T> Unpin for IntegerSeconds<T> where
T: Unpin,
impl<T> UnwindSafe for IntegerSeconds<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more