ptx-90-parser 0.4.4

Parse NVIDIA PTX 9.0 assembly into a structured AST and explore modules via a CLI.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use super::TreeFormatter;
/// Trait for displaying AST nodes in a tree structure.
///
/// Types implementing this trait can be displayed as a tree with proper
/// indentation and box-drawing characters, showing both their structure
/// and the original source text.
use std::fmt;

pub trait TreeDisplay {
    /// Display this node in tree format.
    ///
    /// # Arguments
    /// * `f` - The formatter to write to
    /// * `source` - The original source code string for extracting raw text from spans
    fn tree_display(&self, f: &mut TreeFormatter, source: &str) -> fmt::Result;
}