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)
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> 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)