struct Numeric {
sign: ri8<-1, 1>,
hours: ri8<0, { t::SpanZoneOffsetHours::MAX }>,
minutes: Option<ri8<0, { t::SpanZoneOffsetMinutes::MAX }>>,
seconds: Option<ri8<0, { t::SpanZoneOffsetSeconds::MAX }>>,
nanoseconds: Option<ri32<0, { _ }>>,
}
Expand description
A numeric representation of a UTC offset.
Fields§
§sign: ri8<-1, 1>
The sign that was parsed from the numeric UTC offset. This is always
either 1
or -1
, never 0
.
hours: ri8<0, { t::SpanZoneOffsetHours::MAX }>
The hours component. This is non-optional because every UTC offset must have at least hours.
minutes: Option<ri8<0, { t::SpanZoneOffsetMinutes::MAX }>>
The minutes component.
seconds: Option<ri8<0, { t::SpanZoneOffsetSeconds::MAX }>>
The seconds component. This is only possible when subminute resolution is enabled.
nanoseconds: Option<ri32<0, { _ }>>
The nanoseconds fractional component. This is only possible when subminute resolution is enabled.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Numeric
impl RefUnwindSafe for Numeric
impl Send for Numeric
impl Sync for Numeric
impl Unpin for Numeric
impl UnwindSafe for Numeric
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