Skip to main content

Module base

Module base 

Source

Structs§

AttrDef
One attribute of a class, as the schema declares it.
ClassDef
A class of the schema: what it is called and what it declares.
Element
One decoded CIM object: its class, its mRID, and its fields as written.
FastHasher
A fast, non-cryptographic hasher for the decoder’s maps.
Schema
What one family’s schema says, as a table: its classes, the profiles it defines and the namespaces its vocabularies bind. Generated by cimgen, or read from RDFS at runtime (schema_source).
TypeRegistry
Namespace-aware class lookup, and every attribute each class declares.

Enums§

AttrKind
How an attribute’s value is carried in RDF/XML.
FieldValue

Functions§

intern
The one &'static copy of a field key the class tables do not hold — an attribute the element’s class does not declare, as written in the file or set from JSON. Each distinct key is leaked once and kept for the process; there are as many as distinct undeclared attribute names, not fields.

Type Aliases§

FastBuildHasher
FastMap
FastSet
FieldMap
An element’s fields, keyed by Class.attr. Keys are &'static: a declared attribute’s key is its id in the class table, any other goes through intern, so a key is allocated once per process rather than per field.