pub fn of_u8(m: u8) -> Option<Self> {
        match m {
            1 => Some(Self::Jan),
            2 => Some(Self::Feb),
            3 => Some(Self::Mar),
            4 => Some(Self::Apr),
            5 => Some(Self::May),
            6 => Some(Self::Jun),
            7 => Some(Self::Jul),
            8 => Some(Self::Aug),
            9 => Some(Self::Sep),
            10 => Some(Self::Oct),
            11 => Some(Self::Nov),
            12 => Some(Self::Dec),
            _ => None,
        }
    }
/// Converts from an int, 1 for January, 2 for February, etc.
Converts from an int, 1 for January, 2 for February, etc.
Converts from an int 1 for January 2 for February etc .
pub fn of_u8(m: u8) -> Option<Self> {
        match m {
            1 => Some(Self::Jan),
            2 => Some(Self::Feb),
            3 => Some(Self::Mar),
            4 => Some(Self::Apr),
            5 => Some(Self::May),
            6 => Some(Self::Jun),
            7 => Some(Self::Jul),
            8 => Some(Self::Aug),
            9 => Some(Self::Sep),
            10 => Some(Self::Oct),
            11 => Some(Self::Nov),
            12 => Some(Self::Dec),
            _ => None,
        }
    }
pub fn of_u8 ( m : u8 ) -> Option < Self > { match m { 1 => Some ( Self :: Jan ) , 2 => Some ( Self :: Feb ) , 3 => Some ( Self :: Mar ) , 4 => Some ( Self :: Apr ) , 5 => Some ( Self :: May ) , 6 => Some ( Self :: Jun ) , 7 => Some ( Self :: Jul ) , 8 => Some ( Self :: Aug ) , 9 => Some ( Self :: Sep ) , 10 => Some ( Self :: Oct ) , 11 => Some ( Self :: Nov ) , 12 => Some ( Self :: Dec ) , _ => None , } }
Converts from an int, 1 for January, 2 for February, etc.
Converts from an int 1 for January 2 for February etc .
m
u8
m
u8