Struct rc_zip::parse::MsdosTimestamp
source · pub struct MsdosTimestamp {
pub time: u16,
pub date: u16,
}
Expand description
A timestamp in MS-DOS format
Represents dates from year 1980 to 2180, with 2 second precision.
Fields§
§time: u16
Time in 2-second intervals
date: u16
Date in MS-DOS format, cf. https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-dosdatetimetofiletime
Implementations§
source§impl MsdosTimestamp
impl MsdosTimestamp
sourcepub fn into_owned(self) -> MsdosTimestamp
pub fn into_owned(self) -> MsdosTimestamp
Copy the structure and clone the original values if it’s not owned.
This is always a deep copy of the structure.
source§impl MsdosTimestamp
impl MsdosTimestamp
sourcepub fn to_owned(&self) -> MsdosTimestamp
pub fn to_owned(&self) -> MsdosTimestamp
Copy the structure and clone the original values.
This is always a deep copy.
Trait Implementations§
source§impl Clone for MsdosTimestamp
impl Clone for MsdosTimestamp
source§fn clone(&self) -> MsdosTimestamp
fn clone(&self) -> MsdosTimestamp
Returns a copy 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 MsdosTimestamp
impl Debug for MsdosTimestamp
source§impl IntoOwned for MsdosTimestamp
impl IntoOwned for MsdosTimestamp
source§type Owned = MsdosTimestamp
type Owned = MsdosTimestamp
The type after obtaining ownership, should be the same as before but with static lifetime.
source§fn into_owned(self) -> Self::Owned
fn into_owned(self) -> Self::Owned
Copy the structure and clone the original values if it’s not owned. Read more
source§impl PartialEq for MsdosTimestamp
impl PartialEq for MsdosTimestamp
source§impl ToOwned for MsdosTimestamp
impl ToOwned for MsdosTimestamp
impl Copy for MsdosTimestamp
impl Eq for MsdosTimestamp
impl StructuralPartialEq for MsdosTimestamp
Auto Trait Implementations§
impl Freeze for MsdosTimestamp
impl RefUnwindSafe for MsdosTimestamp
impl Send for MsdosTimestamp
impl Sync for MsdosTimestamp
impl Unpin for MsdosTimestamp
impl UnwindSafe for MsdosTimestamp
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)