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§
Sourcefn week_of_year(self) -> u8
fn week_of_year(self) -> u8
Calculate the week of year for a particular date.
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.