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

Function len

src/pointer.rs:2148–2154  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2146
2147 #[test]
2148 fn len() {
2149 let ptr = Pointer::from_static("/foo/bar");
2150 assert_eq!(ptr.len(), 8);
2151 let mut ptr = ptr.to_buf();
2152 ptr.push_back("~");
2153 assert_eq!(ptr.len(), 11);
2154 }
2155
2156 #[test]
2157 fn is_empty() {

Callers

nothing calls this directly

Calls 2

to_bufMethod · 0.80
push_backMethod · 0.80

Tested by

no test coverage detected