Enum RoundingError
enum RoundingError
An error from rounding by TimeDelta
See: DurationRound
Variants
-
DurationExceedsTimestamp Error when the TimeDelta exceeds the TimeDelta from or until the Unix epoch.
Note: this error is not produced anymore.
-
DurationExceedsLimit Error when
TimeDelta.num_nanosecondsexceeds the limit.# use ; let dt = from_ymd_opt .unwrap .and_hms_nano_opt .unwrap .and_utc; assert_eq!;-
TimestampExceedsLimit Error when
DateTime.timestamp_nanosexceeds the limit.# use ; let dt = Utc.with_ymd_and_hms.unwrap; assert_eq!;
Implementations
impl Clone for RoundingError
fn clone(self: &Self) -> RoundingError
impl Copy for RoundingError
impl Debug for RoundingError
fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result
impl Display for RoundingError
fn fmt(self: &Self, f: &mut fmt::Formatter<'_>) -> fmt::Result
impl Eq for RoundingError
impl Error for RoundingError
fn description(self: &Self) -> &str
impl Freeze for RoundingError
impl PartialEq for RoundingError
fn eq(self: &Self, other: &RoundingError) -> bool
impl RefUnwindSafe for RoundingError
impl Send for RoundingError
impl StructuralPartialEq for RoundingError
impl Sync for RoundingError
impl Unpin for RoundingError
impl UnwindSafe for RoundingError
impl<T> Any for RoundingError
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for RoundingError
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for RoundingError
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> CloneToUninit for RoundingError
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)
impl<T> From for RoundingError
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for RoundingError
fn to_owned(self: &Self) -> Tfn clone_into(self: &Self, target: &mut T)
impl<T> ToString for RoundingError
fn to_string(self: &Self) -> String
impl<T, U> Into for RoundingError
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for RoundingError
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for RoundingError
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>