Module capnp::introspect
source · Expand description
Traits and types to support run-time type introspection, i.e. reflection.
Structs§
- A RawStructSchema with branding information, i.e. resolution of type parameters. To use one of this, you will usually want to convert it to a
schema::StructSchema
, which can be done viainto()
. - Type information that gets included in the generated code for every user-defined Cap’n Proto enum. To use one of this, you will usually want to convert it to a
schema::EnumSchema
, which can be done viainto()
. - Type information that gets included in the generated code for every user-defined Cap’n Proto struct.
- A description of a Cap’n Proto type. The representation is optimized to avoid heap allocation.
Enums§
- A
Type
unfolded one level. Suitable for pattern matching. Can be trivially converted toType
via theFrom
/Into
traits.
Traits§
- A type that supports reflection. All types that can appear in a Cap’n Proto message implement this trait.