Registry / utility / ptree
library0.5.2rscratesunverified

Pretty-print tree-like structures in Rust.

# Cargo.toml [dependencies] ptree = "0.5.2"
INSTALL
IMPORT
SIG · PTREE
P
ptree
utilityrustv0.5.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

print_tree
use ptree::print_tree;

Builds and prints a simple tree structure.

use ptree::print_tree; fn main() { let tree = ptree::TreeBuilder::new("root".to_string()) .begin_child("child1") .end_child() .begin_child("child2") .end_child() .build(); print_tree(&tree).unwrap(); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.5.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
ptree — cargo add ptree · libregistry