pub struct Time(/* private fields */);
Expand description
Date and time representation.
Implementations§
source§impl Time
impl Time
sourcepub fn new(params: TimeParams) -> Result<Self, TimeError>
pub fn new(params: TimeParams) -> Result<Self, TimeError>
Create a Time
value. If a field is not in the valid range,
TimeError
is returned.
sourcepub const fn invalid() -> Self
pub const fn invalid() -> Self
Create an invalid Time
with all fields set to zero. This can
be used with FileInfo
to indicate a field should not be
updated when calling File::set_info
.
sourcepub const fn nanosecond(&self) -> u32
pub const fn nanosecond(&self) -> u32
Query the nanosecond.
Trait Implementations§
source§impl PartialEq for Time
impl PartialEq for Time
impl Copy for Time
impl Eq for Time
impl StructuralPartialEq for Time
Auto Trait Implementations§
impl Freeze for Time
impl RefUnwindSafe for Time
impl Send for Time
impl Sync for Time
impl Unpin for Time
impl UnwindSafe for Time
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