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

Method deref

src/pointer.rs:1058–1061  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

1056impl Deref for PointerBuf {
1057 type Target = Pointer;
1058 fn deref(&self) -> &Self::Target {
1059 // SAFETY: we hold a valid pointer
1060 unsafe { Pointer::new_unchecked(self.0.as_str()) }
1061 }
1062}
1063
1064impl From<PointerBuf> for Box<Pointer> {

Callers

nothing calls this directly

Calls 1

as_strMethod · 0.80

Tested by

no test coverage detected