pub struct UnknownPtr(/* private fields */);Expand description
A pointer whose target has not yet been reverse-engineered.
§Safety
This may be null and has no particular alignment requirements, but it does require that if it’s not nullit must point within the current process’s memory space.
Implementations§
Source§impl UnknownPtr
impl UnknownPtr
Sourcepub unsafe fn from(value: usize) -> Self
pub unsafe fn from(value: usize) -> Self
Interprets value as a pointer.
§Safety
The caller must ensure that value is either 0 or a valid address in
the current address space.
Sourcepub fn rtti_classname(&self) -> Option<String>
pub fn rtti_classname(&self) -> Option<String>
Returns the class name for this pointer, if it’s pointing to a vftable whose name is in the RTTI.
Trait Implementations§
Source§impl Clone for UnknownPtr
impl Clone for UnknownPtr
Source§fn clone(&self) -> UnknownPtr
fn clone(&self) -> UnknownPtr
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UnknownPtr
impl Debug for UnknownPtr
Source§impl Pointer for UnknownPtr
impl Pointer for UnknownPtr
impl Copy for UnknownPtr
Auto Trait Implementations§
impl Freeze for UnknownPtr
impl RefUnwindSafe for UnknownPtr
impl !Send for UnknownPtr
impl !Sync for UnknownPtr
impl Unpin for UnknownPtr
impl UnsafeUnpin for UnknownPtr
impl UnwindSafe for UnknownPtr
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more