pub struct ArcRef<T: ?Sized + 'static>(/* private fields */);
Expand description
Either a reference-counted Arc
or a static reference to a value.
Implementations§
Trait Implementations§
Source§impl<T: ?Sized> From<&'static T> for ArcRef<T>
impl<T: ?Sized> From<&'static T> for ArcRef<T>
Source§fn from(r: &'static T) -> Self
fn from(r: &'static T) -> Self
Converts to this type from the input type.
Source§impl<T> Ord for ArcRef<T>
impl<T> Ord for ArcRef<T>
Source§impl<S, T> PartialOrd<ArcRef<S>> for ArcRef<T>
impl<S, T> PartialOrd<ArcRef<S>> for ArcRef<T>
impl<T> Eq for ArcRef<T>
Auto Trait Implementations§
impl<T> Freeze for ArcRef<T>where
T: ?Sized,
impl<T> RefUnwindSafe for ArcRef<T>where
T: RefUnwindSafe + ?Sized,
impl<T> Send for ArcRef<T>
impl<T> Sync for ArcRef<T>
impl<T> Unpin for ArcRef<T>where
T: ?Sized,
impl<T> UnwindSafe for ArcRef<T>where
T: RefUnwindSafe + ?Sized,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more