m3e/hour
Types
Values
pub fn from_string(hour: String) -> Result(Hour, String)
from_string creates an Hour value from a string. This constructor takes a string and returns a Result. It requires the string to be a valid hour, between 0 and 23, inclusive.
pub fn new(hour: Int) -> Result(Hour, String)
new creates an Hour value from an hour. This constructor takes an hour as an Int and returns a Result. It requires the hour to be between 0 and 23, inclusive.