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

Function pointer_buf_clear

src/pointer.rs:1585–1589  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1583
1584 #[test]
1585 fn pointer_buf_clear() {
1586 let mut ptr = PointerBuf::from_tokens(["foo", "bar"]);
1587 ptr.clear();
1588 assert_eq!(ptr, "");
1589 }
1590
1591 #[test]
1592 fn push_pop_back() {

Callers

nothing calls this directly

Calls 2

from_tokensFunction · 0.85
clearMethod · 0.80

Tested by

no test coverage detected