(self, dest: NonNull<u8>)
| 1272 | } |
| 1273 | |
| 1274 | unsafe fn ext_move(self, dest: NonNull<u8>) { |
| 1275 | // Safety: implied by this trait method's safety contract. |
| 1276 | unsafe { |
| 1277 | dest.cast::<E>().write(self.0); |
| 1278 | } |
| 1279 | } |
| 1280 | |
| 1281 | fn ext_is(&self, type_id: TypeId) -> bool { |
| 1282 | // NB: need to check type id of `E`, not `Self` aka |