Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
1
fn get_demo(a: &[i32; 5], i: usize) -> Option<&i32> {
2
assert!(i < a.len());
3
a.get(i)
4
}
5
6
fn main() {
7
let a = [1, 2, 3, 4, 5];
Callers
1
main
Function · 0.85
Calls
1
get
Method · 0.45
Tested by
no test coverage detected