[−][src]Struct rc_borrow::RcBorrow

pub struct RcBorrow<'a, T: ?Sized> { /* fields omitted */ }

RcBorrow

Methods

impl<'a, T: ?Sized> RcBorrow<'a, T>[src]

pub fn upgrade(this: Self) -> Rc<T>[src]

Convert this borrowed pointer into an owned pointer.

pub fn downgrade(this: Self) -> &'a T[src]

Convert this borrowed pointer into a standard reference.

Trait Implementations

impl<'_, T: ?Sized> Deref for RcBorrow<'_, T>[src]

type Target = T

The resulting type after dereferencing.

impl<'a, T: ?Sized> From<&'a Rc<T>> for RcBorrow<'a, T>[src]

impl<'_, T: ?Sized> Debug for RcBorrow<'_, T> where
    T: Debug, 
[src]

impl<'_, T: ?Sized> Display for RcBorrow<'_, T> where
    T: Display, 
[src]

impl<'_, T: ?Sized> LowerExp for RcBorrow<'_, T> where
    T: LowerExp, 
[src]

impl<'_, T: ?Sized> UpperExp for RcBorrow<'_, T> where
    T: UpperExp, 
[src]

impl<'_, '_, T: ?Sized, O: ?Sized> PartialEq<&'_ O> for RcBorrow<'_, T> where
    T: PartialEq<O>, 
[src]

impl<'_, '_, T: ?Sized, O: ?Sized> PartialEq<&'_ mut O> for RcBorrow<'_, T> where
    T: PartialEq<O>, 
[src]

impl<'_, T: ?Sized> PartialEq<RcBorrow<'_, T>> for RcBorrow<'_, T> where
    T: PartialEq, 
[src]

impl<'_, T: ?Sized> Eq for RcBorrow<'_, T> where
    T: Eq, 
[src]

impl<'_, T: Ord> Ord for RcBorrow<'_, T> where
    T: Ord, 
[src]

impl<'_, '_, T: ?Sized, O: ?Sized> PartialOrd<&'_ O> for RcBorrow<'_, T> where
    T: PartialOrd<O>, 
[src]

impl<'_, '_, T: ?Sized, O: ?Sized> PartialOrd<&'_ mut O> for RcBorrow<'_, T> where
    T: PartialOrd<O>, 
[src]

impl<'_, T: ?Sized> PartialOrd<RcBorrow<'_, T>> for RcBorrow<'_, T> where
    T: PartialOrd, 
[src]

impl<'_, T: ?Sized> Unpin for RcBorrow<'_, T>[src]

impl<'_, T: ?Sized> Hash for RcBorrow<'_, T> where
    T: Hash, 
[src]

impl<'_, T: ?Sized> Copy for RcBorrow<'_, T>[src]

impl<'a, T: ?Sized> Send for RcBorrow<'a, T> where
    &'a Rc<T>: Send, 
[src]

impl<'a, T: ?Sized> Sync for RcBorrow<'a, T> where
    &'a Rc<T>: Sync, 
[src]

impl<'_, T: ?Sized, U: ?Sized> AsRef<U> for RcBorrow<'_, T> where
    T: AsRef<U>, 
[src]

impl<'_, T: ?Sized> Octal for RcBorrow<'_, T> where
    T: Octal, 
[src]

impl<'_, T: ?Sized> Binary for RcBorrow<'_, T> where
    T: Binary, 
[src]

impl<'_, T: ?Sized> LowerHex for RcBorrow<'_, T> where
    T: LowerHex, 
[src]

impl<'_, T: ?Sized> UpperHex for RcBorrow<'_, T> where
    T: UpperHex, 
[src]

impl<'_, T: ?Sized> Pointer for RcBorrow<'_, T> where
    T: Pointer, 
[src]

impl<'_, T: ?Sized> Clone for RcBorrow<'_, T>[src]

impl<'_, T: ?Sized> Borrow<T> for RcBorrow<'_, T>[src]

impl<'_, T: ?Sized> ToSocketAddrs for RcBorrow<'_, T> where
    T: ToSocketAddrs, 
[src]

type Iter = T::Iter

Returned iterator over socket addresses which this type may correspond to. Read more

impl<'_, T: ?Sized> UnwindSafe for RcBorrow<'_, T> where
    T: RefUnwindSafe, 
[src]

impl<'_, T: ?Sized> ErasablePtr for RcBorrow<'_, T> where
    T: Erasable, 
[src]

Auto Trait Implementations

impl<'a, T> !RefUnwindSafe for RcBorrow<'a, T>

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> Erasable for T[src]