[][src]Struct rusty_v8::SharedPtr

#[repr(C)]pub struct SharedPtr<T: Shared>(_);

Wrapper around a C++ shared_ptr. A shared_ptr may be be null.

Implementations

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

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

pub fn use_count(&self) -> long[src]

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

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

Trait Implementations

impl<T: Shared> Clone for SharedPtr<T>[src]

impl<T: Default + Shared> Default for SharedPtr<T>[src]

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

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

Auto Trait Implementations

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

impl<T> Send for SharedPtr<T> where
    T: Sync

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

impl<T> Unpin for SharedPtr<T> where
    T: Unpin

impl<T> UnwindSafe for SharedPtr<T> where
    T: UnwindSafe

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.