[−][src]Struct rc_borrow::ArcBorrow
ArcBorrow
Methods
impl<'a, T: ?Sized> ArcBorrow<'a, T>
[src][−]
pub fn upgrade(this: Self) -> Arc<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 ArcBorrow<'_, T>
[src][+]
impl<'a, T: ?Sized> From<&'a Arc<T>> for ArcBorrow<'a, T>
[src][+]
impl<'_, T: ?Sized> Debug for ArcBorrow<'_, T> where
T: Debug,
[src][+]
T: Debug,
impl<'_, T: ?Sized> Display for ArcBorrow<'_, T> where
T: Display,
[src][+]
T: Display,
impl<'_, T: ?Sized> LowerExp for ArcBorrow<'_, T> where
T: LowerExp,
[src][+]
T: LowerExp,
impl<'_, T: ?Sized> UpperExp for ArcBorrow<'_, T> where
T: UpperExp,
[src][+]
T: UpperExp,
impl<'_, '_, T: ?Sized, O: ?Sized> PartialEq<&'_ O> for ArcBorrow<'_, T> where
T: PartialEq<O>,
[src][+]
T: PartialEq<O>,
impl<'_, '_, T: ?Sized, O: ?Sized> PartialEq<&'_ mut O> for ArcBorrow<'_, T> where
T: PartialEq<O>,
[src][+]
T: PartialEq<O>,
impl<'_, T: ?Sized> PartialEq<ArcBorrow<'_, T>> for ArcBorrow<'_, T> where
T: PartialEq,
[src][+]
T: PartialEq,
impl<'_, T: ?Sized> Eq for ArcBorrow<'_, T> where
T: Eq,
[src]
T: Eq,
impl<'_, T: Ord> Ord for ArcBorrow<'_, T> where
T: Ord,
[src][+]
T: Ord,
impl<'_, '_, T: ?Sized, O: ?Sized> PartialOrd<&'_ O> for ArcBorrow<'_, T> where
T: PartialOrd<O>,
[src][+]
T: PartialOrd<O>,
impl<'_, '_, T: ?Sized, O: ?Sized> PartialOrd<&'_ mut O> for ArcBorrow<'_, T> where
T: PartialOrd<O>,
[src][+]
T: PartialOrd<O>,
impl<'_, T: ?Sized> PartialOrd<ArcBorrow<'_, T>> for ArcBorrow<'_, T> where
T: PartialOrd,
[src][+]
T: PartialOrd,
impl<'_, T: ?Sized> Unpin for ArcBorrow<'_, T>
[src]
impl<'_, T: ?Sized> Hash for ArcBorrow<'_, T> where
T: Hash,
[src][+]
T: Hash,
impl<'_, T: ?Sized> Copy for ArcBorrow<'_, T>
[src]
impl<'a, T: ?Sized> Send for ArcBorrow<'a, T> where
&'a Arc<T>: Send,
[src]
&'a Arc<T>: Send,
impl<'a, T: ?Sized> Sync for ArcBorrow<'a, T> where
&'a Arc<T>: Sync,
[src]
&'a Arc<T>: Sync,
impl<'_, T: ?Sized, U: ?Sized> AsRef<U> for ArcBorrow<'_, T> where
T: AsRef<U>,
[src][+]
T: AsRef<U>,
impl<'_, T: ?Sized> Octal for ArcBorrow<'_, T> where
T: Octal,
[src][+]
T: Octal,
impl<'_, T: ?Sized> Binary for ArcBorrow<'_, T> where
T: Binary,
[src][+]
T: Binary,
impl<'_, T: ?Sized> LowerHex for ArcBorrow<'_, T> where
T: LowerHex,
[src][+]
T: LowerHex,
impl<'_, T: ?Sized> UpperHex for ArcBorrow<'_, T> where
T: UpperHex,
[src][+]
T: UpperHex,
impl<'_, T: ?Sized> Pointer for ArcBorrow<'_, T> where
T: Pointer,
[src][+]
T: Pointer,
impl<'_, T: ?Sized> Clone for ArcBorrow<'_, T>
[src][+]
impl<'_, T: ?Sized> Borrow<T> for ArcBorrow<'_, T>
[src][+]
impl<'_, T: ?Sized> ToSocketAddrs for ArcBorrow<'_, T> where
T: ToSocketAddrs,
[src][+]
T: ToSocketAddrs,
impl<'_, T: ?Sized> UnwindSafe for ArcBorrow<'_, T> where
T: RefUnwindSafe,
[src]
T: RefUnwindSafe,
impl<'_, T: ?Sized> ErasablePtr for ArcBorrow<'_, T> where
T: Erasable,
[src][+]
T: Erasable,
Auto Trait Implementations
impl<'a, T: ?Sized> RefUnwindSafe for ArcBorrow<'a, T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T> From<T> for T
[src][+]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T> ToString for T where
T: Display + ?Sized,
[src][+]
T: Display + ?Sized,