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

Method with_inode

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

Create a byte-level context with an inode reference. # Arguments `path` - The file path relative to repository root `line` - The line number (1-indexed) `inode` - The file's inode position in the graph `byte` - The byte offset within the file

(
        path: impl Into<String>,
        line: u64,
        inode: Position<Inode>,
        byte: u64,
    )

Source from the content-addressed store, hash-verified

199 /// * `inode` - The file's inode position in the graph
200 /// * `byte` - The byte offset within the file
201 pub fn with_inode(
202 path: impl Into<String>,
203 line: u64,
204 inode: Position<Inode>,
205 byte: u64,
206 ) -> Self {
207 Self {
208 path: path.into(),
209 line,
210 inode: Some(inode),
211 byte,
212 }
213 }
214
215 /// Convert to a simple `Local` (dropping byte and inode info).
216 pub fn to_local(&self) -> Local {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected