pub unsafe trait Verify<C: Fallible + ?Sized> {
// Required method
fn verify(&self, context: &mut C) -> Result<(), C::Error>;
}
Expand description
A type that can check whether its invariants are upheld.
§Safety
verify
must only returnOk
if all of the invariants of this type are upheld byself
.verify
may not assume that its type invariants are upheld by the givenself.