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

Method to_local

atomic-core/src/change/local.rs:216–221  ·  view source on GitHub ↗

Convert to a simple `Local` (dropping byte and inode info).

(&self)

Source from the content-addressed store, hash-verified

214
215 /// Convert to a simple `Local` (dropping byte and inode info).
216 pub fn to_local(&self) -> Local {
217 Local {
218 path: self.path.clone(),
219 line: self.line,
220 }
221 }
222
223 /// Get the path as a PathBuf.
224 pub fn path_buf(&self) -> PathBuf {

Callers 2

fromMethod · 0.80
test_local_byte_to_localFunction · 0.80

Calls 1

cloneMethod · 0.45

Tested by 1

test_local_byte_to_localFunction · 0.64