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 ==
.impl Eq for UnsafePtrObj
Auto Trait Implementations§
impl !RefUnwindSafe for UnsafePtrObj
impl !Send for UnsafePtrObj
impl !Sync for UnsafePtrObj
impl Unpin for UnsafePtrObj
impl !UnwindSafe for UnsafePtrObj
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