[][src]Struct rc_box::ArcBox

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

ArcBox

Methods

impl ArcBox<dyn Any>[src]

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

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

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

impl<T: ?Sized> ArcBox<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 ArcBox<T>[src]

type Target = T

The resulting type after dereferencing.

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

impl<T: ?Sized> From<ArcBox<T>> for Arc<T>[src]

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

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

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

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

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

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

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

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

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

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

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

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

impl<T: ?Sized> TryFrom<Arc<T>> for ArcBox<T>[src]

type Error = Arc<T>

The type returned in the event of a conversion error.

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

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

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

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

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

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

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

type Item = T::Item

The type of the elements being iterated over.

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

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

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

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

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

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

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

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

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

impl<T: ?Sized> ErasablePtr for ArcBox<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]