pub fn of_u8(i: u8) -> Option<DayOfWeek> {
        match i {
            0 => Some(Self::Sun),
            1 => Some(Self::Mon),
            2 => Some(Self::Tue),
            3 => Some(Self::Wed),
            4 => Some(Self::Thu),
            5 => Some(Self::Fri),
            6 => Some(Self::Sat),
            _ => None,
        }
    }
/// Conversion from an int, 0 for Sunday, 1 for Monday, etc.
Conversion from an int, 0 for Sunday, 1 for Monday, etc.
Conversion from an int 0 for Sunday 1 for Monday etc .
pub fn of_u8(i: u8) -> Option<DayOfWeek> {
        match i {
            0 => Some(Self::Sun),
            1 => Some(Self::Mon),
            2 => Some(Self::Tue),
            3 => Some(Self::Wed),
            4 => Some(Self::Thu),
            5 => Some(Self::Fri),
            6 => Some(Self::Sat),
            _ => None,
        }
    }
pub fn of_u8 ( i : u8 ) -> Option < DayOfWeek > { match i { 0 => Some ( Self :: Sun ) , 1 => Some ( Self :: Mon ) , 2 => Some ( Self :: Tue ) , 3 => Some ( Self :: Wed ) , 4 => Some ( Self :: Thu ) , 5 => Some ( Self :: Fri ) , 6 => Some ( Self :: Sat ) , _ => None , } }
Conversion from an int, 0 for Sunday, 1 for Monday, etc.
Conversion from an int 0 for Sunday 1 for Monday etc .
i
u8
i
u8