m3e/year
Types
Values
pub fn from_string(s: String) -> Result(Year, String)
from_string parses a Year value from a string, returning a Result. The string must represent an integer year between 1800 and 2500, inclusive.
pub fn new(year: Int) -> Result(Year, String)
new creates a Year value from an integer year, returning a Result. The year must be between 1800 and 2500, inclusive.