VLAN ID Rust library
Clean VLAN ID representation with transparent u16 support, an invalid VLAN Error type, and a value that represents a native VLAN.
Usage
use MaybeVlanId;
let native = NATIVE;
assert_eq!;
assert!;
// memory-level compatibility with u16!
let zero: u16 = 0u16;
let should_be_zero: u16 = unsafe ;
assert_eq!;
License
Apache 2.0 or MPL 2.0.