use crate;
use Cow;
/// Replace the body with a string generated by a custom function.
///
/// **NOTE:** The function needs to ensure that the [`PanicDetails`] information is escaped. This
/// can be done using [`crate::utils::escape_text`].
+ 'static + Send + Sync>);