m3e/minute

Types

Minute represents a minute of the hour, between 0 and 59, inclusive.

pub opaque type Minute

Values

pub const default: Minute
pub fn from_string(minute: String) -> Result(Minute, String)

from_string creates a Minute value from a string representation of a minute. This constructor takes a string and returns a Result. It requires the string to be a valid minute, i.e. a number between 00 and 59, inclusive.

pub fn new(minute: Int) -> Result(Minute, String)

new creates a Minute value from a minute. This constructor takes a minute as an Int and returns a Result. It requires the minute to be between 0 and 59, inclusive.

pub fn to_string(m: Minute) -> String

to_string returns a string representation of the minute, padded with a leading zero if necessary.

Search Document