MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / from_base32

Method from_base32

atomic-core/src/kg/project_id.rs:38–40  ·  view source on GitHub ↗
(s: &str)

Source from the content-addressed store, hash-verified

36 Self(bytes)
37 }
38 pub fn from_base32(s: &str) -> Result<Self, ProjectIdError> {
39 strict_base32(s).map(Self)
40 }
41 pub fn to_base32(self) -> String {
42 data_encoding::BASE32_NOPAD.encode(&self.0)
43 }

Callers

nothing calls this directly

Calls 1

strict_base32Function · 0.85

Tested by

no test coverage detected