Struct xxlib::SharedPtr[][src]

pub struct SharedPtr<T> where
    T: ?Sized
{ /* fields omitted */ }

Implementations

impl<T> SharedPtr<T>[src]

pub fn new(v: T) -> SharedPtr<T>[src]

pub fn write(&mut self, v: T)[src]

pub fn assume_init(self) -> Option<Rc<T>>[src]

impl<T> SharedPtr<T> where
    T: ?Sized
[src]

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

pub fn weak(&self) -> Option<Weak<T>>[src]

pub fn set_null(&mut self)[src]

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

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

Methods from Deref<Target = Rc<T>>

Trait Implementations

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

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

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

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

type Target = Rc<T>

The resulting type after dereferencing.

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

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

impl<T> From<Rc<T>> for SharedPtr<T> where
    T: ?Sized
[src]

impl<T: ISerde + 'static> IReadInner for SharedPtr<T>[src]

impl ISerdeCaseToType for SharedPtr<dyn ISerde>[src]

impl<T: ISerde + 'static> ITypeCaseToISerde for SharedPtr<T>[src]

impl<T: ISerde> IWriteInner for SharedPtr<T>[src]

write

Auto Trait Implementations

impl<T: ?Sized> NotU8 for SharedPtr<T> where
    T: NotU8

impl<T> !RefUnwindSafe for SharedPtr<T>

impl<T> !Send for SharedPtr<T>

impl<T> !Sync for SharedPtr<T>

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

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