Function manuf::prefix [−][src]
pub fn prefix<S: AsRef<str>>(
s: S
) -> impl Iterator<Item = (EtherAddr, u32)>
Find vendor's prefix and mask for the ethernet (MAC) address.
Example
assert!( manuf::prefix("Apple") .any(|prefix| prefix == ([0x8c, 0x85, 0x90, 0x00, 0x00, 0x00], 24)) );