[][src]Struct rusty_v8::UniqueRef

#[repr(transparent)]
pub struct UniqueRef<T>(_)
where
    T: Delete
;

Pointer to object allocated on the C++ heap. The pointer may not be null.

Methods

impl<T> UniqueRef<T> where
    T: Delete, 
[src]

pub fn new(r: &'static mut T) -> Self[src]

pub unsafe fn from_raw(p: *mut T) -> Self[src]

pub fn into_raw(self) -> *mut T[src]

Trait Implementations

impl<T: Debug> Debug for UniqueRef<T> where
    T: Delete, 
[src]

impl<T> Deref for UniqueRef<T> where
    T: Delete, 
[src]

type Target = &'static mut T

The resulting type after dereferencing.

impl<T> DerefMut for UniqueRef<T> where
    T: Delete, 
[src]

impl<T> Drop for UniqueRef<T> where
    T: Delete, 
[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for UniqueRef<T> where
    T: RefUnwindSafe

impl<T> Send for UniqueRef<T> where
    T: Send

impl<T> Sync for UniqueRef<T> where
    T: Sync

impl<T> Unpin for UniqueRef<T>

impl<T> !UnwindSafe for UniqueRef<T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.