(
vec: &Vec<RuntimeResult<HostFd>>,
index: SboxFd,
)
| 14 | #[pure] |
| 15 | #[requires(index < MAX_SBOX_FDS )] |
| 16 | pub fn vec_checked_lookup( |
| 17 | vec: &Vec<RuntimeResult<HostFd>>, |
| 18 | index: SboxFd, |
| 19 | ) -> RuntimeResult<HostFd> { |
| 20 | vec[index as usize] |
| 21 | } |
| 22 | |
| 23 | // Once again, Prusti does not accept that this is pure |
| 24 | #[trusted] |
no outgoing calls
no test coverage detected