Skip to main content

NonNullExt

Trait NonNullExt 

Source
pub trait NonNullExt {
    // Required method
    fn view_inj(n1: Self, n2: Self);
}
Expand description

Additional lemmas for NonNull.

Required Methods§

Source

fn view_inj(n1: Self, n2: Self)

logic

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.

Implementations on Foreign Types§

Source§

impl<T: ?Sized> NonNullExt for NonNull<T>

Source§

fn view_inj(n1: Self, n2: Self)

Asserts that the NonNull is only defined by the contained pointer.

logic

ensures

n1@ == n2@ ==> n1 == n2

Implementors§