pub struct Parts {
pub year: Option<i64>,
pub month: Option<i64>,
pub day: Option<i64>,
pub hour: Option<i64>,
pub minute: Option<i64>,
pub second: Option<f64>,
pub timezone: Option<i16>,
}Expand description
The named parts a record constructor gave, before they are a value.
Every part is optional because the standard’s fields are, and the
meaning of an absent one differs by type: an absent month is
January and an absent month in a duration is nought months. The
seconds are a float because ISO’s <seconds value> carries a
fraction and the other five do not.
Fields§
§year: Option<i64>§month: Option<i64>§day: Option<i64>§hour: Option<i64>§minute: Option<i64>§second: Option<f64>§timezone: Option<i16>The zone as an offset from UTC in minutes, which is the only form zu holds one in; see the module note.
Trait Implementations§
impl Copy for Parts
impl StructuralPartialEq for Parts
Auto Trait Implementations§
impl Forget for Parts
impl Freeze for Parts
impl Move for Parts
impl RefUnwindSafe for Parts
impl Send for Parts
impl Sync for Parts
impl Unpin for Parts
impl UnsafeUnpin for Parts
impl UnwindSafe for Parts
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