[][src]Struct rusty_v8::UniqueRef

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

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

Implementations

impl<T> UniqueRef<T>[src]

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

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

impl<T: Shared> UniqueRef<T>[src]

pub fn make_shared(self) -> SharedRef<T>[src]

Trait Implementations

impl<T: ?Sized> AsMut<T> for UniqueRef<T>[src]

impl<T: ?Sized> AsRef<T> for UniqueRef<T>[src]

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

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

impl<T: ?Sized> Deref for UniqueRef<T>[src]

type Target = T

The resulting type after dereferencing.

impl<T: ?Sized> DerefMut for UniqueRef<T>[src]

impl<T: ?Sized> Drop for UniqueRef<T>[src]

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

impl<T: Shared> From<UniqueRef<T>> for SharedRef<T>[src]

Auto Trait Implementations

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

impl<T> !Send for UniqueRef<T>

impl<T> !Sync for UniqueRef<T>

impl<T: ?Sized> Unpin for UniqueRef<T>

impl<T: ?Sized> UnwindSafe for UniqueRef<T> where
    T: RefUnwindSafe

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.