pub(crate) enum UnitConfigError {
CalendarUnitsNotAllowed {
unit: Unit,
},
CivilDate {
given: Unit,
},
CivilTime {
given: Unit,
},
IncrementDivide {
unit: Unit,
must_divide: MustDivide,
},
LargestSmallerThanSmallest {
smallest: Unit,
largest: Unit,
},
RelativeWeekOrDay {
unit: Unit,
},
RelativeYearOrMonth {
unit: Unit,
},
RelativeYearOrMonthGivenDaysAre24Hours {
unit: Unit,
},
RoundToUnitUnsupported {
unit: Unit,
},
SignedDurationCalendarUnit {
smallest: Unit,
},
TimeZoneOffset {
given: Unit,
},
}Variants§
CalendarUnitsNotAllowed
CivilDate
CivilTime
IncrementDivide
LargestSmallerThanSmallest
RelativeWeekOrDay
RelativeYearOrMonth
RelativeYearOrMonthGivenDaysAre24Hours
RoundToUnitUnsupported
SignedDurationCalendarUnit
TimeZoneOffset
Trait Implementations§
Source§impl Clone for UnitConfigError
impl Clone for UnitConfigError
Source§fn clone(&self) -> UnitConfigError
fn clone(&self) -> UnitConfigError
Returns a duplicate 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 UnitConfigError
impl Debug for UnitConfigError
Source§impl Display for UnitConfigError
impl Display for UnitConfigError
Source§impl From<UnitConfigError> for Error
impl From<UnitConfigError> for Error
Source§fn from(err: UnitConfigError) -> Error
fn from(err: UnitConfigError) -> Error
Converts to this type from the input type.
Source§impl IntoError for UnitConfigError
impl IntoError for UnitConfigError
fn into_error(self) -> Error
Auto Trait Implementations§
impl Freeze for UnitConfigError
impl RefUnwindSafe for UnitConfigError
impl Send for UnitConfigError
impl Sync for UnitConfigError
impl Unpin for UnitConfigError
impl UnwindSafe for UnitConfigError
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