Struct dcbor::KnownTagsDict
source · pub struct KnownTagsDict(_);Expand description
A concrete type that maps from tags to their known names.
Higher-level libraries may implement their own concrete types similar to or
incorporating this type and implementing the KnownTags trait, in which
case those types can also be passed to the methods that format CBOR as text.
Implementations§
source§impl KnownTagsDict
impl KnownTagsDict
sourcepub fn new() -> KnownTagsDict
pub fn new() -> KnownTagsDict
Creates a new, empty KnownTagsDict.
Creates a new KnownTagsDict from the provided array of tags.
Each of the provided tags must have an assigned name, or this function panics.