[][src]Struct rusty_v8_m::UniquePtr

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

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

Methods

impl<T: ?Sized> UniquePtr<T>[src]

pub fn is_null(&self) -> bool[src]

pub fn as_ref(&self) -> Option<&UniqueRef<T>>[src]

pub fn as_mut(&mut self) -> Option<&mut UniqueRef<T>>[src]

pub fn take(&mut self) -> Option<UniqueRef<T>>[src]

pub fn unwrap(self) -> UniqueRef<T>[src]

impl<T> UniquePtr<T>[src]

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

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

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

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

Trait Implementations

impl<T> Default for UniquePtr<T>[src]

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

Auto Trait Implementations

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

impl<T> !Send for UniquePtr<T>

impl<T> !Sync for UniquePtr<T>

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

impl<T: ?Sized> UnwindSafe for UniquePtr<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.