[][src]Struct rc_box::RcBox

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

RcBox

Methods

impl RcBox<dyn Any>[src]

pub fn downcast<T: Any>(self) -> Result<RcBox<T>, Self>[src]

impl RcBox<dyn Any + Send + Sync>[src]

pub fn downcast<T: Any>(self) -> Result<RcBox<T>, Self>[src]

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

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

pub fn get_mut(this: &mut Self) -> Option<&mut T>[src]

Deprecated:

Use DerefMut instead

pub fn into_raw(this: Self) -> NonNull<T>[src]

pub fn leak<'a>(this: Self) -> &'a mut T where
    T: 'a, 
[src]

pub fn make_mut(this: &mut Self) -> &mut T[src]

Deprecated:

Use DerefMut instead

pub fn new(data: T) -> Self where
    T: Sized
[src]

pub fn ptr_eq(this: &Self, other: &Self) -> bool[src]

pub fn strong_count(_: &Self) -> usize[src]

Deprecated:

Always 1

pub fn try_unwrap(this: Self) -> Result<T, Self> where
    T: Sized
[src]

Deprecated:

Use ArcBox::into_inner instead

pub fn into_inner(this: Self) -> T where
    T: Sized
[src]

pub fn weak_count(_: &Self) -> usize[src]

Deprecated:

Always 0

Trait Implementations

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

type Target = T

The resulting type after dereferencing.

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

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

impl<'_, T> From<&'_ [T]> for RcBox<[T]> where
    T: Clone
[src]

impl<'_> From<&'_ str> for RcBox<str>[src]

impl<T: ?Sized> From<Box<T>> for RcBox<T>[src]

impl From<String> for RcBox<str>[src]

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

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

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

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

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

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

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

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

impl<T: ?Sized> TryFrom<Rc<T>> for RcBox<T>[src]

type Error = Rc<T>

The type returned in the event of a conversion error.

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

impl<T: ?Sized> Unpin for RcBox<T>[src]

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

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

impl<T: ?Sized> Send for RcBox<T> where
    Box<T>: Send
[src]

impl<T: ?Sized> Sync for RcBox<T> where
    Box<T>: Sync
[src]

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

type Item = T::Item

The type of the elements being iterated over.

impl<T> FromIterator<T> for RcBox<[T]>[src]

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

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

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

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

impl<T: ?Sized> AsMut<T> for RcBox<T>[src]

impl<T: ?Sized> Pointer for RcBox<T>[src]

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

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

impl<T: ?Sized> ErasablePtr for RcBox<T> where
    T: Erasable
[src]

Blanket Implementations

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

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

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

type Error = !

The type returned in the event of a conversion error.

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

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

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.

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

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> Erasable for T[src]