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

Method new

atomic-cli/src/commands/change/tree.rs:14–19  ·  view source on GitHub ↗
(label: impl Into<String>)

Source from the content-addressed store, hash-verified

12
13impl Tree {
14 fn new(label: impl Into<String>) -> Self {
15 Self {
16 label: label.into(),
17 children: Vec::new(),
18 }
19 }
20
21 fn push(&mut self, label: impl Into<String>) {
22 self.children.push(Self::new(label));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected