Trait creusot_contracts::std::ptr::PointerExt
source · pub trait PointerExt<T: ?Sized>: Sized {
// Required methods
fn addr_logic(self) -> Int;
fn is_null_logic(self) -> bool;
}
Required Methods§
sourcefn addr_logic(self) -> Int
fn addr_logic(self) -> Int
logical address of the pointer
logic
sourcefn is_null_logic(self) -> bool
fn is_null_logic(self) -> bool
logic
ensures
result == (self.addr_logic() == 0)
Object Safety§
This trait is not object safe.
Implementations on Foreign Types§
source§impl<T: ?Sized> PointerExt<T> for *const T
impl<T: ?Sized> PointerExt<T> for *const T
source§fn addr_logic(self) -> Int
fn addr_logic(self) -> Int
logic ⚠
source§fn is_null_logic(self) -> bool
fn is_null_logic(self) -> bool
logic
self.addr_logic() == 0
ensures
result == (self.addr_logic() == 0)
source§impl<T: ?Sized> PointerExt<T> for *mut T
impl<T: ?Sized> PointerExt<T> for *mut T
source§fn addr_logic(self) -> Int
fn addr_logic(self) -> Int
logic ⚠
source§fn is_null_logic(self) -> bool
fn is_null_logic(self) -> bool
logic
self.addr_logic() == 0
ensures
result == (self.addr_logic() == 0)