Struct temporal_rs::components::MonthDay
source · #[non_exhaustive]pub struct MonthDay<C: CalendarProtocol> { /* private fields */ }
Expand description
The native Rust implementation of Temporal.PlainMonthDay
Implementations§
source§impl<C: CalendarProtocol> MonthDay<C>
impl<C: CalendarProtocol> MonthDay<C>
sourcepub fn new(
month: i32,
day: i32,
calendar: CalendarSlot<C>,
overflow: ArithmeticOverflow
) -> TemporalResult<Self>
pub fn new( month: i32, day: i32, calendar: CalendarSlot<C>, overflow: ArithmeticOverflow ) -> TemporalResult<Self>
Creates a new valid MonthDay
.
sourcepub fn calendar(&self) -> &CalendarSlot<C>
pub fn calendar(&self) -> &CalendarSlot<C>
Returns a reference to MonthDay
’s CalendarSlot
Trait Implementations§
source§impl<C: CalendarProtocol> FromStr for MonthDay<C>
impl<C: CalendarProtocol> FromStr for MonthDay<C>
source§impl<C: CalendarProtocol> GetCalendarSlot<C> for MonthDay<C>
impl<C: CalendarProtocol> GetCalendarSlot<C> for MonthDay<C>
source§fn get_calendar(&self) -> CalendarSlot<C>
fn get_calendar(&self) -> CalendarSlot<C>
Returns the
CalendarSlot<C>
value of the implementor.source§impl<C: CalendarProtocol> IsoDateSlots for MonthDay<C>
impl<C: CalendarProtocol> IsoDateSlots for MonthDay<C>
Auto Trait Implementations§
impl<C> RefUnwindSafe for MonthDay<C>where
C: RefUnwindSafe,
impl<C> !Send for MonthDay<C>
impl<C> !Sync for MonthDay<C>
impl<C> Unpin for MonthDay<C>where
C: Unpin,
impl<C> UnwindSafe for MonthDay<C>where
C: UnwindSafe,
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