ISO 10383 Types
This crate provides basic no-std, no-std::no-alloc capable types for working with ISO 10383 data, including an owned Mic and it's associated &mic borrow, as well as additional enums for handling [Kind], [Category], and [Status] of a code.
If you're looking for stronger validation and smaller storage requirements, you probably want the iso10383-static crate.
Features
default: Enables theserdefeature.serde: Enables the serialization and deserialization traits of the code enum and MIC record data.alloc: Enables the variants of serde serialization and deserialization which requirealloc. This should be enabled if serde has it's ownallocfeature enabled.zerocopy: Enables the derivation of traits from thezerocopy, namelyIntoBytesandKnownLayout. Notably, this does not includeTryFromBytesas it is not possible to provide a custom validity check at this time.
Examples
use ;
const SRC: &str = "IEXG";
let mcode = from_str.expect;
assert_eq!;