Skip to main content

Crate smac

Crate smac 

Source
Expand description

§smac

§A small MAC address parsing library in no_std Rust

The MacAddress struct is six bytes, and implements FromStr and Display. The FromStr implementation expects a string of six hex bytes unseparated, or separated by space (’ ‘) or colon (’:’).

smac uses no_std and only the unit tests depend on alloc.

Structs§

MacAddress
A struct representing a 48-bit MAC address.
ParseError