HasMetadata

Trait HasMetadata 

Source
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§

Source

type Metadata: FromBytes + Sized

The Rust type that represents the metadata.

Implementors§