Skip to main content

axiom_cast_spec_eq

Function axiom_cast_spec_eq 

Source
pub broadcast proof fn axiom_cast_spec_eq<T: PointeeSized, U>(ptr: NonNull<T>)
Expand description
ensures
((#[trigger] ptr.cast_spec::<U>())).as_ptr() == ptr.as_ptr() as *mut U,

The semantic of casting a NonNull<T> should be the same as casting the underlying raw pointer (including the address, metadata, and provenance).