fn parse_leap_indicator(first: u8) -> LeapState {
    match first >> 6 {
        0 => NoLeap,
        1 => Positive,
        2 => Negative,
        _ => LeapState::Unknown,
    }
}
/// The first byte encodes these three fields in a bitpacked format.
/// These 4 helper functions deal with that.
/// See RFC 5905 Figure 8.
The first byte encodes these three fields in a bitpacked format.
These 4 helper functions deal with that.
See RFC 5905 Figure 8.
The first byte encodes these three fields in a bitpacked format . These 4 helper functions deal with that . See RFC 5905 Figure 8 .
fn parse_leap_indicator(first: u8) -> LeapState {
    match first >> 6 {
        0 => NoLeap,
        1 => Positive,
        2 => Negative,
        _ => LeapState::Unknown,
    }
}
fn parse_leap_indicator ( first : u8 ) -> LeapState { match first >> 6 { 0 => NoLeap , 1 => Positive , 2 => Negative , _ => LeapState :: Unknown , } }
The first byte encodes these three fields in a bitpacked format.
The first byte encodes these three fields in a bitpacked format .
first
u8
first
u8