MCPcopy Create free account
hub / github.com/corrode/write-yourself-a-shell / new

Method new

examples/block2.rs:34–39  ·  view source on GitHub ↗
(chain: &str)

Source from the content-addressed store, hash-verified

32
33impl Parser {
34 fn new(chain: &str) -> Self {
35 Self {
36 tokens: chain.split_whitespace().map(String::from).collect(),
37 current: 0,
38 }
39 }
40
41 fn parse(mut self) -> Option<Chain> {
42 let mut elements = vec![];

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected