Struct rusty_v8::UniqueRef[][src]

#[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 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]

fn as_mut(&mut self) -> &mut T[src]

Performs the conversion.

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

fn as_ref(&self) -> &T[src]

Performs the conversion.

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

fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

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

type Target = T

The resulting type after dereferencing.

fn deref(&self) -> &Self::Target[src]

Dereferences the value.

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

fn deref_mut(&mut self) -> &mut Self::Target[src]

Mutably dereferences the value.

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

fn drop(&mut self)[src]

Executes the destructor for this type. Read more

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

fn from(unique_ref: UniqueRef<T>) -> Self[src]

Performs the conversion.

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

fn from(unique_ref: UniqueRef<T>) -> Self[src]

Performs the conversion.

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]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.