Struct nt_time::error::FileTimeRangeError
source · pub struct FileTimeRangeError(/* private fields */);
Expand description
The error type indicating that a FileTime
was out of
range.
Implementations§
source§impl FileTimeRangeError
impl FileTimeRangeError
sourcepub const fn kind(&self) -> FileTimeRangeErrorKind
pub const fn kind(&self) -> FileTimeRangeErrorKind
Returns the corresponding FileTimeRangeErrorKind
for this error.
§Examples
assert_eq!(
FileTime::from_unix_time(i64::MIN).unwrap_err().kind(),
FileTimeRangeErrorKind::Negative
);
assert_eq!(
FileTime::from_unix_time(i64::MAX).unwrap_err().kind(),
FileTimeRangeErrorKind::Overflow
);
Trait Implementations§
source§impl Clone for FileTimeRangeError
impl Clone for FileTimeRangeError
source§fn clone(&self) -> FileTimeRangeError
fn clone(&self) -> FileTimeRangeError
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 FileTimeRangeError
impl Debug for FileTimeRangeError
source§impl Display for FileTimeRangeError
impl Display for FileTimeRangeError
source§impl Error for FileTimeRangeError
Available on crate feature std
only.
impl Error for FileTimeRangeError
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<FileTimeRangeErrorKind> for FileTimeRangeError
impl From<FileTimeRangeErrorKind> for FileTimeRangeError
source§fn from(kind: FileTimeRangeErrorKind) -> Self
fn from(kind: FileTimeRangeErrorKind) -> Self
Converts to this type from the input type.
source§impl PartialEq for FileTimeRangeError
impl PartialEq for FileTimeRangeError
impl Copy for FileTimeRangeError
impl Eq for FileTimeRangeError
impl StructuralPartialEq for FileTimeRangeError
Auto Trait Implementations§
impl Freeze for FileTimeRangeError
impl RefUnwindSafe for FileTimeRangeError
impl Send for FileTimeRangeError
impl Sync for FileTimeRangeError
impl Unpin for FileTimeRangeError
impl UnwindSafe for FileTimeRangeError
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.