pub trait Walk {
// Required method
fn walk(policy_data: &PolicyData, offset: PolicyOffset) -> PolicyOffset;
}
Expand description
A trait for types that can be walked through the policy data.
This trait is used when walking the binary policy to find objects of interest efficiently.
Required Methods§
Sourcefn walk(policy_data: &PolicyData, offset: PolicyOffset) -> PolicyOffset
fn walk(policy_data: &PolicyData, offset: PolicyOffset) -> PolicyOffset
Walks the policy data to the next object of the given type.
Returns an error if the cursor cannot be walked to the next object of the given type.
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.