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
verifymust only returnOkif all of the invariants of this type are upheld byself.verifymay not assume that its type invariants are upheld by the givenself.