(
error: SharedPtr<'_, DynError>,
)
| 122 | } |
| 123 | |
| 124 | unsafe fn as_dyn_core_error<E>( |
| 125 | error: SharedPtr<'_, DynError>, |
| 126 | ) -> &(dyn core::error::Error + Send + Sync + 'static) |
| 127 | where |
| 128 | E: ErrorExt, |
| 129 | { |
| 130 | let error = error.cast::<ConcreteError<E>>(); |
| 131 | // Safety: implied by all vtable functions' safety contract. |
| 132 | let error = unsafe { error.as_ref() }; |
| 133 | error.error.ext_as_dyn_core_error() |
| 134 | } |
| 135 | |
| 136 | unsafe fn into_boxed_dyn_core_error<E>( |
| 137 | error: OwnedPtr<DynError>, |
nothing calls this directly
no test coverage detected