(&self, v_fd: SboxFd)
| 66 | // #[pure] |
| 67 | #[ensures(result.is_ok() ==> old(v_fd) < MAX_SBOX_FDS)] |
| 68 | pub fn fd_to_native(&self, v_fd: SboxFd) -> RuntimeResult<HostFd> { |
| 69 | if v_fd >= MAX_SBOX_FDS { |
| 70 | return Err(Ebadf); |
| 71 | } |
| 72 | // self.m[idx as usize] |
| 73 | vec_checked_lookup(&self.m, v_fd) |
| 74 | } |
| 75 | |
| 76 | #[pure] |
| 77 | #[requires(index < MAX_SBOX_FDS)] |
no test coverage detected