pub fn encode_units(main_types: &[MainType]) -> IsccResult<u32>Expand description
Encode optional ISCC-UNIT MainTypes as a unit combination index (0–7).
Maps the optional units (Meta, Semantic, Content) present in a composite ISCC-CODE to a bitfield index. Data and Instance are mandatory and must not be included. The bitfield pattern is: bit 0 = Content, bit 1 = Semantic, bit 2 = Meta.