文件名称:ascii_tree:锈板条箱写一个ASCII树木
文件大小:3KB
文件格式:ZIP
更新时间:2024-06-04 03:49:11
Rust
板条箱写一个ascii树。 let l1 = Leaf(vec![String::from("line1"), String::from("line2"), String::from("line3"), String::from("line4")]); let l2 = Leaf(vec![String::from("only one line")]); let n1 = Node(String::from("node 1"), vec![l1.clone(), l2.clone()]); let n2 = Node(String::from("node 2"), vec![l2.clone(), l1.clone(), l2.clone()]); let n3 = Node(String::from("node 3"), vec![n1.clone(), l1.clone()
【文件预览】:
ascii_tree-master
----tests()
--------test_tree.rs(1KB)
----src()
--------lib.rs(3KB)
----Cargo.toml(305B)
----.gitignore(384B)
----README.md(1KB)