ISO 17442 Types
This crate provides no-std, no-alloc compatible data structures for use handling ISO 17442 Legal Entity IDs. The primary type is Lei, which is an owned (but non-heap) representation of an LEI string. For example:
use Lei;
use FromStr;
const LEI_STR: &str = "YZ83GD8L7GG84979J516";
let l = from_str.expect;
let s = l.as_str;
assert_eq!;
There is also an additional lei borrow type. This is the &str to Lei's String:
use ;
use FromStr;
const LEI_STR: &str = "YZ83GD8L7GG84979J516";
let l = from_str_slice.expect;
assert_eq!;
Both of these types are fully usable in the const context, making them suitable for use within static data.