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§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
)