Struct go_vm::types::UnsafePtrObj
source · pub struct UnsafePtrObj { /* private fields */ }
Implementations§
source§impl UnsafePtrObj
impl UnsafePtrObj
pub fn new(ptr: Rc<dyn UnsafePtr>) -> UnsafePtrObj
pub fn as_rust_ptr(&self) -> *const dyn UnsafePtr
pub fn downcast_ref<T: Any>(&self) -> RuntimeResult<&T>
Trait Implementations§
source§impl Clone for UnsafePtrObj
impl Clone for UnsafePtrObj
source§fn clone(&self) -> UnsafePtrObj
fn clone(&self) -> UnsafePtrObj
Returns a copy of the value. Read more
1.0.0 · 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 UnsafePtrObj
impl Debug for UnsafePtrObj
source§impl Display for UnsafePtrObj
impl Display for UnsafePtrObj
source§impl PartialEq<UnsafePtrObj> for UnsafePtrObj
impl PartialEq<UnsafePtrObj> for UnsafePtrObj
source§fn eq(&self, other: &UnsafePtrObj) -> bool
fn eq(&self, other: &UnsafePtrObj) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.