fn mac_to_byte(data: &str, sep: char) -> ArrayVec<u8, MAC_SIZE> {
        let bytes = data
            .split(sep)
            .flat_map(|x| hex::decode(x).expect("Invalid mac!"))
            .collect::<ArrayVec<u8, MAC_SIZE>>();

        debug_assert_eq!(MAC_SIZE, bytes.len());

        bytes
    }
/// Converts string representation of MAC address (e.x. 00:01:02:03:04:05) to raw bytes.
/// # Panic
/// Panics when input MAC is invalid (i.e. contains non-byte characters)
Converts string representation of MAC address (e.x.
Converts string representation of MAC address ( e . x .
fn mac_to_byte(data: &str, sep: char) -> ArrayVec<u8, MAC_SIZE> {
        let bytes = data
            .split(sep)
            .flat_map(|x| hex::decode(x).expect("Invalid mac!"))
            .collect::<ArrayVec<u8, MAC_SIZE>>();
        debug_assert_eq!(MAC_SIZE, bytes.len());
        bytes
    }
fn mac_to_byte ( data : & str , sep : char ) -> ArrayVec < u8 , MAC_SIZE > { let bytes = data . split ( sep ) . flat_map ( | x | hex :: decode ( x ) . expect ( " " ) ) . collect :: < ArrayVec < u8 , MAC_SIZE > > ( ) ; debug_assert_eq ! ( MAC_SIZE bytes len ( ) ) ; bytes }
Converts string representation of MAC address (e.x.
Converts string representation of MAC address ( e . x .
data
&str
sep
char
panic
Panics when input MAC is invalid
Panics when input MAC is invalid