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 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 UnsafePtrObj
impl Debug for UnsafePtrObj
Source§impl Display for UnsafePtrObj
impl Display for UnsafePtrObj
impl Eq for UnsafePtrObj
Auto Trait Implementations§
impl !RefUnwindSafe for UnsafePtrObj
impl !Send for UnsafePtrObj
impl !Sync for UnsafePtrObj
impl !UnwindSafe for UnsafePtrObj
impl Freeze for UnsafePtrObj
impl Unpin for UnsafePtrObj
impl UnsafeUnpin 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