pub struct Components {
pub sec: u8,
pub min: u8,
pub hour: u8,
pub month_day: u8,
pub month: u8,
pub year: i16,
pub week_day: u8,
pub year_day: u16,
}
Expand description
Time components.
Fields§
§sec: u8
Second.
min: u8
Minute.
hour: u8
Hour.
month_day: u8
Day of month.
month: u8
Month - January is 1, December is 12.
year: i16
Year.
week_day: u8
Day of week.
year_day: u16
Day of year.
Trait Implementations§
Source§impl Clone for Components
impl Clone for Components
Source§fn clone(&self) -> Components
fn clone(&self) -> Components
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 Components
impl Debug for Components
Source§impl Hash for Components
impl Hash for Components
Source§impl PartialEq for Components
impl PartialEq for Components
impl Copy for Components
impl Eq for Components
impl StructuralPartialEq for Components
Auto Trait Implementations§
impl Freeze for Components
impl RefUnwindSafe for Components
impl Send for Components
impl Sync for Components
impl Unpin for Components
impl UnwindSafe for Components
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