Struct nt_time::error::DosDateTimeRangeError
source · pub struct DosDateTimeRangeError(/* private fields */);
Expand description
The error type indicating that MS-DOS date and time was out of range.
Implementations§
source§impl DosDateTimeRangeError
impl DosDateTimeRangeError
sourcepub const fn kind(&self) -> DosDateTimeRangeErrorKind
pub const fn kind(&self) -> DosDateTimeRangeErrorKind
Returns the corresponding DosDateTimeRangeErrorKind
for this error.
§Examples
assert_eq!(
FileTime::NT_TIME_EPOCH
.to_dos_date_time(None)
.unwrap_err()
.kind(),
DosDateTimeRangeErrorKind::Negative
);
assert_eq!(
FileTime::MAX.to_dos_date_time(None).unwrap_err().kind(),
DosDateTimeRangeErrorKind::Overflow
);
Trait Implementations§
source§impl Clone for DosDateTimeRangeError
impl Clone for DosDateTimeRangeError
source§fn clone(&self) -> DosDateTimeRangeError
fn clone(&self) -> DosDateTimeRangeError
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 DosDateTimeRangeError
impl Debug for DosDateTimeRangeError
source§impl Display for DosDateTimeRangeError
impl Display for DosDateTimeRangeError
source§impl Error for DosDateTimeRangeError
Available on crate feature std
only.
impl Error for DosDateTimeRangeError
Available on crate feature
std
only.1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<DosDateTimeRangeErrorKind> for DosDateTimeRangeError
impl From<DosDateTimeRangeErrorKind> for DosDateTimeRangeError
source§fn from(kind: DosDateTimeRangeErrorKind) -> Self
fn from(kind: DosDateTimeRangeErrorKind) -> Self
Converts to this type from the input type.
source§impl PartialEq for DosDateTimeRangeError
impl PartialEq for DosDateTimeRangeError
impl Copy for DosDateTimeRangeError
impl Eq for DosDateTimeRangeError
impl StructuralPartialEq for DosDateTimeRangeError
Auto Trait Implementations§
impl Freeze for DosDateTimeRangeError
impl RefUnwindSafe for DosDateTimeRangeError
impl Send for DosDateTimeRangeError
impl Sync for DosDateTimeRangeError
impl Unpin for DosDateTimeRangeError
impl UnwindSafe for DosDateTimeRangeError
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.