pub trait IntoMonths {
// Required method
fn into_months(self) -> Result<Vec<String>, TesseraError>;
}Expand description
Accepted shapes for a month argument: one month, a MonthSpan, or any
iterable of months.
Required Methods§
Sourcefn into_months(self) -> Result<Vec<String>, TesseraError>
fn into_months(self) -> Result<Vec<String>, TesseraError>
Coerce into a non-empty, validated list of YYYY-MM strings.
§Errors
Returns TesseraError::InvalidArgument when the result is empty or
any entry is not in YYYY-MM format.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".