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

Method new

atomic-repository/src/repository/project_tree.rs:38–41  ·  view source on GitHub ↗
(bytes: Vec<u8>)

Source from the content-addressed store, hash-verified

36
37impl RepoPath {
38 pub fn new(bytes: Vec<u8>) -> Result<Self, ProjectTreeError> {
39 validate_repo_path(&bytes)?;
40 Ok(Self(bytes))
41 }
42
43 pub fn from_bytes(bytes: &[u8]) -> Result<Self, ProjectTreeError> {
44 Self::new(bytes.to_vec())

Callers

nothing calls this directly

Calls 5

validate_repo_pathFunction · 0.85
content_keyFunction · 0.85
git_oid_hexFunction · 0.70
cmpMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected