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

Method new

atomic-canonical/src/render.rs:224–229  ·  view source on GitHub ↗
(label: impl Into<String>)

Source from the content-addressed store, hash-verified

222
223impl Tree {
224 fn new(label: impl Into<String>) -> Self {
225 Self {
226 label: label.into(),
227 children: Vec::new(),
228 }
229 }
230
231 fn push(&mut self, label: impl Into<String>) {
232 self.children.push(Self::new(label));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected