parse

Function parse 

Source
pub fn parse<const N: usize>(src: &[u8]) -> Result<[u8; N], ParseError<N>>
Expand description

Parses s as an IEEE 802 MAC-48, EUI-48, EUI-64, or a 20-octet IP over InfiniBand link-layer address and etc using one of the following formats:

  • Colon-separated:

    • 00:00:5e:00:53:01
    • 02:00:5e:10:00:00:00:01
  • Hyphen-separated:

    • 00-00-5e-00-53-01
    • 02-00-5e-10-00-00-00-01
  • Dot-separated:

    • 0000.5e00.5301
    • 0200.5e10.0000.0001