pub struct Datetime { /* private fields */ }Expand description
A UTC date and time.
Implementations§
Trait Implementations§
Source§impl Ord for Datetime
impl Ord for Datetime
Source§impl PartialOrd for Datetime
impl PartialOrd for Datetime
Source§impl TryFrom<SystemTime> for Datetime
impl TryFrom<SystemTime> for Datetime
Source§type Error = OutOfRangeError
type Error = OutOfRangeError
The type returned in the event of a conversion error.
Source§fn try_from(
value: SystemTime,
) -> Result<Datetime, <Datetime as TryFrom<SystemTime>>::Error>
fn try_from( value: SystemTime, ) -> Result<Datetime, <Datetime as TryFrom<SystemTime>>::Error>
Performs the conversion.
impl Copy for Datetime
impl Eq for Datetime
impl StructuralPartialEq for Datetime
Auto Trait Implementations§
impl Freeze for Datetime
impl RefUnwindSafe for Datetime
impl Send for Datetime
impl Sync for Datetime
impl Unpin for Datetime
impl UnwindSafe for Datetime
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