date!() { /* proc-macro */ }
Available on crate feature
macros
only.Expand description
Construct a Date
with a statically known value.
The resulting expression can be used in const
or static
declarations.
Three formats are supported: year-week-weekday, year-ordinal, and year-month-day.