MCPcopy Create free account
hub / github.com/chanced/jsonptr / get

Function get

src/pointer.rs:1819–1824  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1817
1818 #[test]
1819 fn get() {
1820 let ptr = Pointer::from_static("/0/1/2/3/4/5/6/7/8/9");
1821 for i in 0..10 {
1822 assert_eq!(ptr.get(i).unwrap().decoded(), i.to_string());
1823 }
1824 }
1825
1826 #[test]
1827 fn replace_token_success() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected