(env: &JNIEnv, f: F)
| 12 | |
| 13 | #[track_caller] |
| 14 | pub fn attempt<R, F>(env: &JNIEnv, f: F) -> R |
| 15 | where |
| 16 | R: Default, |
| 17 | F: FnOnce(&JNIEnv) -> Result<R, Error>, |
| 18 | { |
| 19 | attempt_or_else(env, R::default, f) |
| 20 | } |
| 21 | |
| 22 | #[track_caller] |
| 23 | pub fn attempt_or_else<R, F, D>(env: &JNIEnv, or: D, f: F) -> R |
no test coverage detected
searching dependent graphs…