pub trait HasTypeId {
const TYPE_ID: u64;
}
Expand description
User-defined Cap’n Proto structs and interfaces are statically assigned a 64-bit type ID. This trait allows the ID to be retrieved.
Required Associated Constants§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.