[][src]Struct rusty_v8_m::SharedRef

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

Wrapper around a C++ shared_ptr. The shared_ptr is assumed to contain a value and may not be null.

Methods

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

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

Trait Implementations

impl<T: Shared> AsRef<T> for SharedRef<T>[src]

impl<T: Shared> Borrow<T> for SharedRef<T>[src]

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

impl<T: Shared> Deref for SharedRef<T>[src]

type Target = T

The resulting type after dereferencing.

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

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

Auto Trait Implementations

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

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

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

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

impl<T> UnwindSafe for SharedRef<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.