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

Method try_from

src/pointer.rs:1108–1111  ·  view source on GitHub ↗
(value: String)

Source from the content-addressed store, hash-verified

1106impl TryFrom<String> for PointerBuf {
1107 type Error = ParseError;
1108 fn try_from(value: String) -> Result<Self, Self::Error> {
1109 let _ = validate(&value)?;
1110 Ok(Self(value))
1111 }
1112}
1113
1114impl From<usize> for PointerBuf {

Callers

nothing calls this directly

Calls 2

validateFunction · 0.85
parseFunction · 0.85

Tested by

no test coverage detected