pub trait HasMetadata {
type Metadata: FromBytes + Sized;
}Expand description
A trait for types that have metadata.
Many policy objects have a fixed-sized metadata section that is much faster to parse than the full object. This trait is used when walking the binary policy to find objects of interest efficiently.
Required Associated Types§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".