pub struct RefHandle<'a, T: ?Sized> { /* private fields */ }🔬This is a nightly-only experimental API. (
field_projections #145383)Expand description
Handle referring to a place behind a shared reference.
Implementations§
Trait Implementations§
impl<'a, T: ?Sized> Copy for RefHandle<'a, T>
Source§impl<'a, 'b, T: ?Sized> DerefPlace for RefHandle<'b, &'a T>
impl<'a, 'b, T: ?Sized> DerefPlace for RefHandle<'b, &'a T>
Source§type PointeeHandle = RefHandle<'a, T>
type PointeeHandle = RefHandle<'a, T>
🔬This is a nightly-only experimental API. (
field_projections #145383)Source§unsafe fn deref_place(self) -> Self::PointeeHandle
unsafe fn deref_place(self) -> Self::PointeeHandle
🔬This is a nightly-only experimental API. (
field_projections #145383)Source§impl<'a, T: ?Sized> PlaceHandle for RefHandle<'a, T>
impl<'a, T: ?Sized> PlaceHandle for RefHandle<'a, T>
Source§impl<'a, S> ProjectPlace<S> for RefHandle<'a, S::Source>
impl<'a, S> ProjectPlace<S> for RefHandle<'a, S::Source>
Auto Trait Implementations§
impl<'a, T> !Send for RefHandle<'a, T>
impl<'a, T> !Sync for RefHandle<'a, T>
impl<'a, T> Forget for RefHandle<'a, T>where
T: ?Sized,
impl<'a, T> Freeze for RefHandle<'a, T>
impl<'a, T> Move for RefHandle<'a, T>
impl<'a, T> RefUnwindSafe for RefHandle<'a, T>where
T: RefUnwindSafe + ?Sized,
impl<'a, T> Unpin for RefHandle<'a, T>
impl<'a, T> UnsafeUnpin for RefHandle<'a, T>
impl<'a, T> UnwindSafe for RefHandle<'a, T>
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