Skip to main content

IntoMonths

Trait IntoMonths 

Source
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§

Source

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".

Implementations on Foreign Types§

Source§

impl IntoMonths for &String

Source§

impl IntoMonths for &str

Source§

impl IntoMonths for String

Source§

impl<C: AsRef<str>, const N: usize> IntoMonths for &[C; N]

Source§

impl<C: AsRef<str>, const N: usize> IntoMonths for [C; N]

Source§

impl<C: AsRef<str>> IntoMonths for &Vec<C>

Source§

impl<C: AsRef<str>> IntoMonths for &[C]

Source§

impl<C: AsRef<str>> IntoMonths for Vec<C>

Implementors§