pub trait ToMinutes {
    // Required method
    fn to_minutes(&self) -> u32;
}
Expand description

A trait to allow for associated enums to be converted to minutes.

Required Methods§

Source

fn to_minutes(&self) -> u32

Implementors§

Source§

impl ToMinutes for Duration

This implementation will convert the duration type of minutes into integer minutes.