pub struct DayOfYear(pub u16);
Expand description
The current day of the year, 1-based.
Tuple Fields§
§0: u16
Trait Implementations§
Source§impl<C, A> GetField<DayOfYear> for DateTime<A>where
C: Calendar,
A: AsCalendar<Calendar = C>,
impl<C, A> GetField<DayOfYear> for DateTime<A>where
C: Calendar,
A: AsCalendar<Calendar = C>,
Source§impl<C, A, Z> GetField<DayOfYear> for ZonedDateTime<A, Z>where
C: Calendar,
A: AsCalendar<Calendar = C>,
impl<C, A, Z> GetField<DayOfYear> for ZonedDateTime<A, Z>where
C: Calendar,
A: AsCalendar<Calendar = C>,
Source§impl IntoOption<DayOfYear> for DayOfYear
impl IntoOption<DayOfYear> for DayOfYear
Source§fn into_option(self) -> Option<DayOfYear>
fn into_option(self) -> Option<DayOfYear>
Return
self
as an Option<T>
impl Copy for DayOfYear
impl StructuralPartialEq for DayOfYear
Auto Trait Implementations§
impl Freeze for DayOfYear
impl RefUnwindSafe for DayOfYear
impl Send for DayOfYear
impl Sync for DayOfYear
impl Unpin for DayOfYear
impl UnwindSafe for DayOfYear
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more