pub struct SimTime(/* private fields */);Implementations§
Source§impl SimTime
impl SimTime
pub const EPOCH: Self
pub const fn from_minutes(minutes_from_epoch: i64) -> Self
pub const fn as_minutes(self) -> i64
pub const fn checked_add(self, duration: SimDuration) -> Option<Self>
pub const fn checked_sub(self, other: Self) -> Option<SimDuration>
Trait Implementations§
Source§impl Add<SimDuration> for SimTime
impl Add<SimDuration> for SimTime
Source§impl AddAssign<SimDuration> for SimTime
impl AddAssign<SimDuration> for SimTime
Source§fn add_assign(&mut self, duration: SimDuration)
fn add_assign(&mut self, duration: SimDuration)
Performs the
+= operation. Read moreimpl Copy for SimTime
Source§impl<'de> Deserialize<'de> for SimTime
impl<'de> Deserialize<'de> for SimTime
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
impl Eq for SimTime
Source§impl Ord for SimTime
impl Ord for SimTime
1.21.0 (const: unstable) · 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 PartialOrd for SimTime
impl PartialOrd for SimTime
impl StructuralPartialEq for SimTime
Auto Trait Implementations§
impl Freeze for SimTime
impl RefUnwindSafe for SimTime
impl Send for SimTime
impl Sync for SimTime
impl Unpin for SimTime
impl UnsafeUnpin for SimTime
impl UnwindSafe for SimTime
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