fn extend_mac(mac: &[u8]) -> ArrayVec<u8, { MAC_SIZE * MAC_PER_MAGIC }> {
        let magic = iter::repeat(mac)
            .take(MAC_PER_MAGIC)
            .flatten()
            .copied()
            .collect::<ArrayVec<u8, { MAC_SIZE * MAC_PER_MAGIC }>>();

        debug_assert_eq!(MAC_SIZE * MAC_PER_MAGIC, magic.len());

        magic
    }
/// Extends the MAC address to fill the magic packet
Extends the MAC address to fill the magic packet
Extends the MAC address to fill the magic packet
fn extend_mac(mac: &[u8]) -> ArrayVec<u8, { MAC_SIZE * MAC_PER_MAGIC }> {
        let magic = iter::repeat(mac)
            .take(MAC_PER_MAGIC)
            .flatten()
            .copied()
            .collect::<ArrayVec<u8, { MAC_SIZE * MAC_PER_MAGIC }>>();
        debug_assert_eq!(MAC_SIZE * MAC_PER_MAGIC, magic.len());
        magic
    }
fn extend_mac ( mac : & [ u8 ] ) -> ArrayVec < u8 , { MAC_SIZE * MAC_PER_MAGIC } > { let magic = iter :: repeat ( mac ) . take ( MAC_PER_MAGIC ) . flatten ( ) . copied ( ) . collect :: < ArrayVec < u8 , { MAC_SIZE * MAC_PER_MAGIC } > > ( ) ; debug_assert_eq ! ( MAC_SIZE MAC_PER_MAGIC magic len ( ) ) ; magic }
Extends the MAC address to fill the magic packet
Extends the MAC address to fill the magic packet
mac
&[u8]