(gc: Gc<'gc, T>)
| 225 | |
| 226 | #[inline] |
| 227 | pub fn as_ptr(gc: Gc<'gc, T>) -> *const T { |
| 228 | unsafe { |
| 229 | let inner = gc.ptr.as_ptr(); |
| 230 | core::ptr::addr_of!((*inner).value) as *const T |
| 231 | } |
| 232 | } |
| 233 | |
| 234 | /// Returns true when a pointer is *dead* during finalization. This is equivalent to |
| 235 | /// `GcWeak::is_dead` for strong pointers. |
no outgoing calls
no test coverage detected