pub struct MonthlyWeekdayOrdinal {
pub ordinal: Ordinal,
pub weekday: Weekday,
}Expand description
Ordinal position of a weekday during a month.
let monthly_weekday_ordinal = MonthlyWeekdayOrdinal::new(Ordinal::Second, Weekday::Tuesday);Fields§
§ordinal: Ordinal§weekday: WeekdayImplementations§
Source§impl MonthlyWeekdayOrdinal
impl MonthlyWeekdayOrdinal
Sourcepub fn new(ordinal: Ordinal, weekday: Weekday) -> MonthlyWeekdayOrdinal
pub fn new(ordinal: Ordinal, weekday: Weekday) -> MonthlyWeekdayOrdinal
Returns a new MonthlyWeekdayOrdinal with given arguments as values.
let monthly_weekday_ordinal = MonthlyWeekdayOrdinal::new(Ordinal::Second, Weekday::Tuesday);Trait Implementations§
Source§impl Clone for MonthlyWeekdayOrdinal
impl Clone for MonthlyWeekdayOrdinal
Source§fn clone(&self) -> MonthlyWeekdayOrdinal
fn clone(&self) -> MonthlyWeekdayOrdinal
Returns a duplicate 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 MonthlyWeekdayOrdinal
impl Debug for MonthlyWeekdayOrdinal
Source§impl<'de> Deserialize<'de> for MonthlyWeekdayOrdinal
impl<'de> Deserialize<'de> for MonthlyWeekdayOrdinal
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for MonthlyWeekdayOrdinal
impl Display for MonthlyWeekdayOrdinal
Source§impl Hash for MonthlyWeekdayOrdinal
impl Hash for MonthlyWeekdayOrdinal
Source§impl PartialEq for MonthlyWeekdayOrdinal
impl PartialEq for MonthlyWeekdayOrdinal
Source§impl Serialize for MonthlyWeekdayOrdinal
impl Serialize for MonthlyWeekdayOrdinal
impl Copy for MonthlyWeekdayOrdinal
impl Eq for MonthlyWeekdayOrdinal
impl StructuralPartialEq for MonthlyWeekdayOrdinal
Auto Trait Implementations§
impl Freeze for MonthlyWeekdayOrdinal
impl RefUnwindSafe for MonthlyWeekdayOrdinal
impl Send for MonthlyWeekdayOrdinal
impl Sync for MonthlyWeekdayOrdinal
impl Unpin for MonthlyWeekdayOrdinal
impl UnwindSafe for MonthlyWeekdayOrdinal
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