(
error: OwnedPtr<DynError>,
)
| 134 | } |
| 135 | |
| 136 | unsafe fn into_boxed_dyn_core_error<E>( |
| 137 | error: OwnedPtr<DynError>, |
| 138 | ) -> Result<Box<dyn core::error::Error + Send + Sync + 'static>, OutOfMemory> |
| 139 | where |
| 140 | E: ErrorExt, |
| 141 | { |
| 142 | let error = error.cast::<ConcreteError<E>>(); |
| 143 | // Safety: implied by all vtable functions' safety contract. |
| 144 | let error = unsafe { error.into_box() }; |
| 145 | error.error.ext_into_boxed_dyn_core_error() |
| 146 | } |
| 147 | |
| 148 | unsafe fn drop_and_deallocate<E>(error: OwnedPtr<DynError>) |
| 149 | where |
nothing calls this directly
no test coverage detected