MCPcopy Index your code
hub / github.com/endbasic/endbasic / linecol

Function linecol

repl/src/editor.rs:575–577  ·  view source on GitHub ↗

Syntactic sugar to easily instantiate a `FilePos` at `(line, col)`.

(line: usize, col: usize)

Source from the content-addressed store, hash-verified

573
574 /// Syntactic sugar to easily instantiate a `FilePos` at `(line, col)`.
575 fn linecol(line: usize, col: usize) -> FilePos {
576 FilePos { line, col }
577 }
578
579 /// Builder pattern to construct the expected sequence of side-effects on the console.
580 #[must_use]

Calls

no outgoing calls