Function borrow
Source pub(crate) unsafe fn borrow<'a, T>(slot: Slot) -> &'a T
Expand description
The object a slot holds, borrowed for as long as the slot keeps it alive.
ยงSafety
slot came from into_slot with the same T, and is still owned by someone for 'a.