Trait CommonWeekOfYear

Source
pub trait CommonWeekOfYear<T: FromPrimitive>: ToFromCommonDate<T> + ToFixed {
    // Provided methods
    fn week_of_year(self) -> u8 { ... }
    fn nth_kday(self, nz: NonZero<i16>, k: Weekday) -> Fixed { ... }
}
Expand description

Calendar systems in which a week of year can be calculated for a date

Provided Methods§

Source

fn week_of_year(self) -> u8

Calculate the week of year for a particular date.

Source

fn nth_kday(self, nz: NonZero<i16>, k: Weekday) -> Fixed

Find the nth occurence of a given day of the week

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§