Trait Pointer
trait Pointer<T: ?Sized + Pointable>
A trait for either Owned or Shared pointers.
Required Methods
fn into_usize(self: Self) -> usizeReturns the machine representation of the pointer.
unsafe fn from_usize(data: usize) -> SelfReturns a new pointer pointing to the tagged pointer
data.Safety
The given
datashould have been created byPointer::into_usize(), and onedatashould not be converted back byPointer::from_usize()multiple times.