pub fn serialize<S: Serializer, E: Borrow<EvalError>>( err: &E, serializer: S, ) -> Result<S::Ok, S::Error>