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

Method version

atomic-repository/src/repository/project_tree.rs:1708–1719  ·  view source on GitHub ↗
(&mut self, expected: u8, model: &'static str)

Source from the content-addressed store, hash-verified

1706 Self { bytes, cursor: 0 }
1707 }
1708 fn version(&mut self, expected: u8, model: &'static str) -> Result<(), ProjectTreeError> {
1709 let found = self.u8()?;
1710 if found == expected {
1711 Ok(())
1712 } else {
1713 Err(ProjectTreeError::UnsupportedVersion {
1714 model,
1715 found,
1716 expected,
1717 })
1718 }
1719 }
1720 fn u8(&mut self) -> Result<u8, ProjectTreeError> {
1721 let value = *self
1722 .bytes

Callers 7

observe_indexFunction · 0.80
observe_open_git_indexFunction · 0.80
from_versioned_bytesMethod · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls 1

u8Method · 0.80

Tested by 4

mainFunction · 0.64
mainFunction · 0.64
mainFunction · 0.64
mainFunction · 0.64