pub struct Ref<T> { /* private fields */ }Expand description
Abstraction type that encodes the pointer to any aggregate type T
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Ref<T>where
PhantomData<T>: Freeze,
impl<T> RefUnwindSafe for Ref<T>where
PhantomData<T>: RefUnwindSafe,
impl<T> Send for Ref<T>where
PhantomData<T>: Send,
impl<T> Sync for Ref<T>where
PhantomData<T>: Sync,
impl<T> Unpin for Ref<T>where
PhantomData<T>: Unpin,
impl<T> UnsafeUnpin for Ref<T>where
PhantomData<T>: UnsafeUnpin,
impl<T> UnwindSafe for Ref<T>where
PhantomData<T>: UnwindSafe,
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