pub struct GhostRef<T>(_);
Expand description
A “ghost” reference that is guaranteed to be zero-sized and obey borrowing and ownership semantics
Implementations
Trait Implementations
impl<T: Copy> Copy for GhostRef<T>
impl<T: Singleton> Singleton for GhostRef<T>
impl<T: Unique> Unique for GhostRef<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for GhostRef<T>where
T: RefUnwindSafe,
impl<T> Send for GhostRef<T>where
T: Send,
impl<T> Sync for GhostRef<T>where
T: Sync,
impl<T> Unpin for GhostRef<T>where
T: Unpin,
impl<T> UnwindSafe for GhostRef<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more