pub struct UtcOffset {
pub sign: Sign,
pub hour: Hour,
pub minute: Minute,
pub second: NonLeapSecond,
}Expand description
An offset from UTC to some local time (RFC 5545 §3.3.14).
Fields§
§sign: SignThe sign of the offset (positive = east of UTC).
hour: HourThe hour component of the offset.
minute: MinuteThe minute component of the offset.
second: NonLeapSecondThe second component of the offset.
Trait Implementations§
Source§impl Ord for UtcOffset
impl Ord for UtcOffset
Source§impl PartialOrd for UtcOffset
impl PartialOrd for UtcOffset
impl Copy for UtcOffset
impl Eq for UtcOffset
impl StructuralPartialEq for UtcOffset
Auto Trait Implementations§
impl Freeze for UtcOffset
impl RefUnwindSafe for UtcOffset
impl Send for UtcOffset
impl Sync for UtcOffset
impl Unpin for UtcOffset
impl UnsafeUnpin for UtcOffset
impl UnwindSafe for UtcOffset
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