MCPcopy Index your code
hub / github.com/Rust-API/Rust-API-Bypass-Checker / get_demo

Function get_demo

tests/get/src/main.rs:1–4  ·  view source on GitHub ↗
(a: &[i32; 5], i: usize)

Source from the content-addressed store, hash-verified

1fn get_demo(a: &[i32; 5], i: usize) -> Option<&i32> {
2 assert!(i < a.len());
3 a.get(i)
4}
5
6fn main() {
7 let a = [1, 2, 3, 4, 5];

Callers 1

mainFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected