rustalize 0.1.0

Rustalizer is a powerful tool designed to help developers analyze complex Rust code structures. It provides a simple Abstract Syntax Tree (AST) parser that can break down Rust traits, structs, and enums into a more manageable and visually comprehensible format.
Documentation
use rustalize::AstNode;
use std::str::FromStr;

fn main() {
    let enum_definition = r#"
        pub enum Message {
            Quit,
        }
    "#;

    match AstNode::from_str(enum_definition) {
        Ok(ast) => {
            println!("Parsed AST (Tree Layout):");
            ast.display_tree();
        }
        Err(e) => {
            eprintln!("Failed to parse enum: {}", e);
        }
    }
}