InvariantsFn

Type Alias InvariantsFn 

Source
pub type InvariantsFn = for<'mem> unsafe fn(value: PtrConst<'mem>) -> bool;
Expand description

Function to validate the invariants of a value. If it returns false, the value is considered invalid.

ยงSafety

The value parameter must point to aligned, initialized memory of the correct type.