Struct ixdtf::parsers::records::UtcOffsetRecord
source · #[non_exhaustive]pub struct UtcOffsetRecord {
pub sign: Sign,
pub hour: u8,
pub minute: u8,
pub second: u8,
pub nanosecond: u32,
}
Expand description
A full precision UtcOffsetRecord
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.sign: Sign
The Sign
value of the UtcOffsetRecord
.
hour: u8
The hour value of the UtcOffsetRecord
.
minute: u8
The minute value of the UtcOffsetRecord
.
second: u8
The second value of the UtcOffsetRecord
.
nanosecond: u32
Any nanosecond value of the UTCOffsetRecord
.
Implementations§
Trait Implementations§
source§impl Clone for UtcOffsetRecord
impl Clone for UtcOffsetRecord
source§fn clone(&self) -> UtcOffsetRecord
fn clone(&self) -> UtcOffsetRecord
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 UtcOffsetRecord
impl Debug for UtcOffsetRecord
source§impl PartialEq for UtcOffsetRecord
impl PartialEq for UtcOffsetRecord
impl Copy for UtcOffsetRecord
impl StructuralPartialEq for UtcOffsetRecord
Auto Trait Implementations§
impl Freeze for UtcOffsetRecord
impl RefUnwindSafe for UtcOffsetRecord
impl Send for UtcOffsetRecord
impl Sync for UtcOffsetRecord
impl Unpin for UtcOffsetRecord
impl UnwindSafe for UtcOffsetRecord
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§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
)